[wp-trac] [WordPress Trac] #49587: Add error handling for the media manager Ajax response

WordPress Trac noreply at wordpress.org
Thu Jul 9 15:17:06 UTC 2020


#49587: Add error handling for the media manager Ajax response
-------------------------------------+-------------------------------------
 Reporter:  johnbillion              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.6
Component:  Media                    |     Version:  3.5
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch needs-       |     Focuses:  javascript,
  design needs-screenshots           |  administration
-------------------------------------+-------------------------------------

Comment (by johnbillion):

 The errors above occur when fetching the list of attachments via Ajax,
 either for the first load or for subsequent loads as part of infinite
 scrolling.

 You can force this by calling `wp_send_json_error()` in
 `wp_ajax_query_attachments()`.

 You're right that the idea behind this ticket is that there is no error
 handling at all at the moment, and the user will see an eternally spinning
 spinner.

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


More information about the wp-trac mailing list