[wp-trac] [WordPress Trac] #30687: Ajax media attachment save has no error handling

WordPress Trac noreply at wordpress.org
Fri Jan 15 20:07:01 UTC 2016


#30687: Ajax media attachment save has no error handling
-------------------------+-----------------------------
 Reporter:  Krielkip     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Media        |     Version:  4.0.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui
-------------------------+-----------------------------

Comment (by locomo):

 Not sure if this changes how this ticket would get prioritized, but
 shouldn't this be marked as a bug (rather than enhancement)? The current
 code actually silently unsets $post['errors'] passed into it and processes
 without any notice to the user.

 This took me forever to track down. I updated documentation for the filter
 'attachment_fields_to_save' to warn developers that we can't currently
 validate custom attachment fields with this filter

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


More information about the wp-trac mailing list