Import: redirect old attachment pages instead of reporting each as an error

Abierto
#650 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
laravel, php, wordpress
Área
backend

Línea de trabajo

Start from the importer step that walks the old site's URLs and records the “attachment page … answers ‘not found’” error; that message is the anchor for the code path that must instead group attachment pages and create redirects. Then read how the site report detects the SEO plugin and where Tools › Redirects stores redirects, since the import must reuse that storage and the verdict must count the new redirects as handled. Done when a Polylang import with many media files reports one summarized line with a count and the switch verdict no longer blocks.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area/import type/enhancement when/soon

Importing a five-language Polylang site with 148 media files reported 2,030 errors of one kind: "/some-image-2/, an attachment page on the old site, answers “not found” here. Bring what it showed, or add a redirect for it in Tools › Redirects." With these, the report says "Not ready to switch yet: 2,033 problems need attention", and the only way out offered is a redirect added by hand for each of two thousand addresses.

On most WordPress sites these pages aren't pages readers use: Yoast SEO (and Rank Math) redirect every attachment page to the file itself by default, so search engines never list them.

Expected:

  • the import makes the redirects itself: each attachment page to its file (or to the post it's attached to, as one choice for the whole import), shown as one line in the report with its count, not 2,030 errors;
  • when the site report says the SEO plugin already redirected attachment pages, that is the default choice;
  • the verdict counts them as handled.

🤖 Generated with Claude Code

Lenguaje dominante
PHP
Estrellas
1
Forks
1
Merge medio
1 h 40 min
PR fusionados (30 d)
143

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de temecms/teme

Todos los issues de temecms/teme

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.