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

Open
#729 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php, wordpress

Research direction

Compare the existing media modal image-generation flow with Block Inserter > Media > Generate images, then inspect how each flow populates the Media Library metadata. Done means the Block Inserter flow places the prompt in Alternative Text and sets Title to its hyphenated form, matching the existing flow.

Written by the indexing model from the issue text.

Description

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
Dominant language
PHP
Stars
714
Forks
68
Avg merge
4h 32m
Merged PRs (30d)
23

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/classifai

All issues in 10up/classifai

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.