WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 6 days 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:

Description

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 2 months ago.
Code view of the missing alt attribute value.

Download all attachments as: .zip

Change History (8)

@sleekchib
2 months ago

Code view of the missing alt attribute value.

#1 @SergeyBiryukov
2 months 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.


2 months ago

#3 @afercia
2 months 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

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


7 weeks ago

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


6 weeks ago

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


13 days ago

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


6 days ago

Note: See TracTickets for help on using tickets.