You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selecting a featured image from the media library, you can add an alt text for the given image. However on the frontend, only the name of the post or page is returned in the alt text of the featured image, instead of the saved alt text from the media library.
Step-by-step reproduction instructions
Make sure to have a block theme active.
Go to a post or page where you have a featured image, or create a new post or page and add a featured image.
Make sure you have set an alt text when selecting the featured image from the media library.
Save the post or page.
Go to the frontend and check the alt text of the featured image. It should contain the post or page title instead of the alt text from the media library.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.0 RC2
Gutenberg plugin 13.1.0
Wabi Theme, but same behaviour on Twenty Twenty-Two
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
I believe the alt text is only intended to be the post or page title if the image is linked. I was able to confirm that it is used when the image is not linked. @aristath #39634
Thank you for reporting this @luminuu, and for bringing it to my attention @carolinan.
This was introduced in #39634, and a PR that fixes this can be found in #41775. 👍
Description
When selecting a featured image from the media library, you can add an alt text for the given image. However on the frontend, only the name of the post or page is returned in the alt text of the featured image, instead of the saved alt text from the media library.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: