[wp-trac] [WordPress Trac] #29891: Display error message when Media Library upload fails

WordPress Trac noreply at wordpress.org
Mon Oct 27 06:48:49 UTC 2014


#29891: Display error message when Media Library upload fails
------------------------------+-----------------------------
 Reporter:  aduth             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.1
Component:  Media             |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  ui, javascript
------------------------------+-----------------------------
Changes (by gcorne):

 * keywords:  has-patch => has-patch commit
 * type:  enhancement => defect (bug)
 * milestone:  Awaiting Review => 4.1


Comment:

 I think that a cleaner solution (see [attachment:29891-01.patch]} to this
 issue is to bypass calling {{{wp_die()}}} if during an ajax request. By
 not calling {{{wp_die()}}} the errors will flow through to
 {{{wp_ajax_upload_attachment}}} where they will result in an error JSON
 response.

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


More information about the wp-trac mailing list