Block Inserter > Media > Generate images does not add alt text or title

オープン
#729 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, wordpress

調査の方向性

既存の Media modal の画像生成フローと Block Inserter > Media > Generate images を比較し、それぞれのフローが Media Library のメタデータをどのように設定するかを確認します。Block Inserter フローがプロンプトを Alternative Text に配置し、既存のフローと同様に Title をハイフン区切りの形式に設定すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

BLOCKED
Describe the bug

When generating an image via the media modal, the prompt is added as the Alternative Text field and a hyphenated version is set for the Title field. However when generating via the Block Inserter > Media > Generate images flow we're not properly putting the prompt into the Alternative Text field or setting that as the hyphenated version in the Title field.

Steps to Reproduce

See above

Screenshots, screen recording, code snippet

Block Inserter > Media > Generate images:
Screenshot 2024-02-22 at 4 09 21 PM

Generated image in Media Library showing no Alternative Text and generic Title:
Screenshot 2024-02-22 at 4 09 43 PM

Environment information

Device: Mac mini 2018
OS: macOS Sonoma 14.3.1
Browser: Firefox 122.0.1

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要言語
PHP
スター
714
フォーク
68
平均マージ
4時間 32分
マージ済み PR(30日)
23

環境構築

はじめの一歩

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

10up/classifai のほかの issue

10up/classifai の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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