[wp-trac] [WordPress Trac] #63818: REST API – /wp/v2/media Returns Inconsistent alt_text in Block Editor

WordPress Trac noreply at wordpress.org
Tue Sep 9 15:36:33 UTC 2025


#63818: REST API – /wp/v2/media Returns Inconsistent alt_text in Block Editor
-------------------------------------+----------------------------
 Reporter:  rahultank                |       Owner:  (none)
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  REST API                 |     Version:  6.8.2
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  reporter-feedback close  |     Focuses:  accessibility
-------------------------------------+----------------------------
Changes (by joedolson):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 I'm thinking that @rahultank is expecting the alt text to sync to the post
 after it's changed.

 But that's not what Gutenberg does; changing alt text in the media library
 is not expected to update posts that reference that image unless they're
 referencing it programmatically, e.g. featured images.

 If this is the scenario, then this is actually behaving as designed. The
 media library stores a version of the alt text, and that alt text can be
 used programmatically, but post content is only a specific usage of that
 media resource, and the alt text in that context is not expected to
 automatically update to the image. This would break the ability to use the
 same image in multiple contexts where it may need to have different
 alternatives.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63818#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list