Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#49651 new defect (bug)

Featured image is missing 'Alt Attribute' value on the edit window

Reported by: sleekchib Owned by:
Milestone: 5.5 Priority: normal
Severity: minor Version: 5.3.2
Component: Editor Keywords:
Focuses: accessibility Cc:


I noticed that the inserted 'featured image' is missing 'Alt Attribute' value on the edit window even when one is provided in the media gallery. I switched themes to ensure that the issue is not specific to the theme that I am using, but it persisted.

  • To replicate the issue, insert a featured image that has an alt text and inspect it on the edit window. NOT on the public site
  • The ‘Alt Text’ showed when the same image was inserted into the content area proper.

I came across the issue as I was working on a feature for my plugin that will help users ensure that they provide 'alt text' for all images in use on the page.

Attachments (1)

the-image.PNG (11.4 KB) - added by sleekchib 3 weeks ago.
Code view of the missing alt attribute value.

Download all attachments as: .zip

Change History (4)

3 weeks ago

Code view of the missing alt attribute value.

#1 @SergeyBiryukov
3 weeks ago

Hi there, welcome to WordPress Trac! Thanks for the report.

Just adding links to some tickets that might be related: #35077, #47456.

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.

3 weeks ago

#3 @afercia
3 weeks ago

  • Milestone changed from Awaiting Review to 5.5

@sleekchib thanks for your report and welcome to Trac!

For reference: This issue has been reported also on the block editor GitHub repository, see https://github.com/WordPress/gutenberg/issues/14416

Note: See TracTickets for help on using tickets.