Import: redirect the old site's media file addresses (originals and resized copies)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
The work sits in the WordPress importer's media step and the routing layer, where the import's map of old paths is built and where redirect rules are resolved. Start by finding how the import report classifies a missing media file, then add a rule for /wp-content/uploads/ that matches originals and -WxH resized copies against the map. Done means the report counts those addresses as handled and a permanent redirect is returned for each, with unimported files still reported as errors.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
After importing a WordPress site with 148 media files, 1,999 of the report's 2,088 errors were the old site's file addresses answering "not found": 115 originals (/wp-content/uploads/2026/04/photo.webp) and 1,884 of WordPress's resized copies (/wp-content/uploads/2026/04/photo-300x200.jpg), each listed as "a file of the media library on the old site answers “not found” here. Bring what it showed, or add a redirect for it in Tools › Redirects."
Those addresses live outside the site's pages: in search engines' image results, in other sites' hotlinks and embeds, in social cards already shared, in RSS readers and in emails. Two thousand redirects can't be added by hand, and while they're errors the report says "Not ready to switch".
Expected:
- every file address of an imported media item answers with a permanent redirect: an original to the item's original, a resized copy (
-WxHbefore the extension, any of WordPress's sizes) to Teme's nearest variant of the same item, or to its original; - one rule for the whole
/wp-content/uploads/folder of the import, resolved from the import's map of old paths, rather than one redirect row per file; - the report counts them as handled ("2,000 old file addresses now redirect"), not as errors;
- a file the import didn't bring (left out, or failed) stays an error, as today.
🤖 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
-
P2 Team S Type: Infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
google/site-kit-wp#14271 ·
Los mantenedores suelen responder en 2 días
-
Display price Views field throws TypeError when the row has no productPosiblemente ocupada @albanycomputers la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
backdrop-contrib/ubercart#610 ·