[wp-trac] [WordPress Trac] #63114: No screen reader announcements for upload image errors

WordPress Trac noreply at wordpress.org
Tue Jul 29 01:23:41 UTC 2025


#63114: No screen reader announcements for upload image errors
--------------------------+----------------------------
 Reporter:  joedolson     |       Owner:  joedolson
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.9
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  accessibility
--------------------------+----------------------------
Changes (by peterwilsoncc):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60520" 60520]:
 {{{
 #!CommitTicketReference repository="" revision="60520"
 Media: Modify escaping used for upload image announcements.

 Replaces `esc_js()` with `wp_json_encode()` for escaping the screen reader
 announcement when a media upload fails. As the code is within a `<script>`
 tag rather than an inline script handler, the `esc_js()` function would
 cause special characters to be announced in their HTML encoded form rather
 than as the character, eg `&` would be announced as `&`.

 Follow up to [60263].

 Props peterwilsoncc, joedolson.
 Fixes #63114.
 }}}

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


More information about the wp-trac mailing list