Import: redirect the old site's media file addresses (originals and resized copies)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- PHP
- スター
- 1
- フォーク
- 1
- 平均マージ
- 1時間 40分
- マージ済み PR(30日)
- 143
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
temecms/teme のほかの issue
-
area/admin type/enhancement when/soon
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
area/media type/enhancement when/soon
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
area/admin type/bug when/soon
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
area/import type/documentation when/soon
難易度 2/5 半日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area/admin area/import type/bug when/later
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
メンテナーはふだん 2 日以内に返信
-
P2 Team S Type: Infrastructure
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
google/site-kit-wp#14271 ·
メンテナーはふだん 2 日以内に返信
-
Display price Views field throws TypeError when the row has no product対応中かも @albanycomputers が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
backdrop-contrib/ubercart#610 ·