Two block patterns share the title "Hero with feature boxes"
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 88/100
調査の方向性
重複しているタイトルは inc/patterns/front-page-hero.php の 18 行目と inc/patterns/hero-with-feature-boxes.php の 38 行目で設定されています。両方のファイルを読み、front-page-hero.php のタイトルを "Front page hero" のような別の文字列に変更してください。Fork Patterns で 2 つの pattern が異なる名前を表示していれば完了です。.pot ファイルも再生成する必要があります。
索引モデルが issue の本文から書いたものです。
説明
What's wrong
In the block inserter, under Patterns → Fork Patterns, two different patterns are both called Hero with feature boxes, so users can't tell them apart by name.
Cause
Both files register the same title:
inc/patterns/front-page-hero.php, line 18:'title' => __( 'Hero with feature boxes', 'fork' )inc/patterns/hero-with-feature-boxes.php, line 38:'title' => __( 'Hero with feature boxes', 'fork' )
front-page-hero is the hero the Front Page template uses ("Fork is a clean & minimal theme…", two buttons, an image). Its title looks copied from the other file.
Steps to reproduce
- Open https://playground.wordpress.net/?wp=latest&theme=fork&login=yes&url=/wp-admin/post-new.php?post_type=page
- Open the block inserter (+), then Patterns → Fork Patterns.
- Hover over the patterns, or search for "Hero with feature boxes".
Expected: each pattern has its own name.
Actual: two patterns are named "Hero with feature boxes".
Suggested fix
Give front-page-hero its own title, for example "Front page hero" (the string is translatable, so the .pot file needs regenerating).
- 主要言語
- PHP
- スター
- 0
- フォーク
- 0
- 平均マージ
- 1時間 2分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeinwp/fork のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
似ている issue
-
Change: check an identifier filter the same way in every tool - the order of somcp_search_ordersオープンconsistency enhancement Orders
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
novalo-dev/Prestashop-MCP-Server#343 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
claude
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sprain/sprainocchio#45 ·
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信