Import: redirect old attachment pages instead of reporting each as an error
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
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
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
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de temecms/teme
-
area/admin type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
area/media type/enhancement when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
area/admin type/bug when/soon
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
area/import type/documentation when/soon
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area/admin area/import type/bug when/later
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de temecms/teme
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
QuantConnect/Documentation#2940 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
e0ipso/simple_oauth_21#63 ·
Los mantenedores suelen responder en 1 día