[wp-trac] [WordPress Trac] #52535: Excess text read with errors in Media Library

WordPress Trac noreply at wordpress.org
Tue Feb 16 04:13:15 UTC 2021


#52535: Excess text read with errors in Media Library
---------------------------------------+-----------------------------
 Reporter:  joedolson                  |      Owner:  (none)
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Media                      |    Version:  trunk
 Severity:  normal                     |   Keywords:
  Focuses:  accessibility, javascript  |
---------------------------------------+-----------------------------
 When an error is generated in the media library, the error is read only
 after reading two separate versions of the page title and the upload media
 button text. This is most immediately caused by executing the error
 message in a `._delay` call, but this is actually a symptom; the delay is
 necessary.

 This is most likely due to an extra Backbone model refresh that occurs
 after the error. Resolving this issue may only be possible by refactoring
 the media library to avoid the additional refresh.

 Delaying the execution of the message ensures that the message is read
 without being interrupted by the extra Backbone refresh; it would be
 preferable, however, if the extra refresh didn't happen, or happened prior
 to the error.

 This ticket follows #47120, resolving the lack of accessible messages on
 upload errors.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52535>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list