Two block patterns share the title "Hero with feature boxes"

オープン 初心者向け
#119 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php, wordpress
領域
content

調査の方向性

重複しているタイトルは 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
  1. Open https://playground.wordpress.net/?wp=latest&theme=fork&login=yes&url=/wp-admin/post-new.php?post_type=page
  2. Open the block inserter (+), then Patterns → Fork Patterns.
  3. 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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Codeinwp/fork のほかの issue

Codeinwp/fork の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。