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

WordPress Trac noreply at wordpress.org
Fri Dec 12 10:23:25 UTC 2014


#30687: Ajax media attachment save has no error handeling
-----------------------------+-----------------------------
 Reporter:  Krielkip         |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:  4.0.1
 Severity:  normal           |   Keywords:
  Focuses:  ui               |
-----------------------------+-----------------------------
 When using the ajax media system on adding media in posts. It is not
 possible to show errors to the users.

 In the file ajax-actions.php (located wp-admin/includes/) in the function
 wp_ajax_save_attachment_compat() the feedback of errors is trown away. If
 this code is further developed with visual feedback, the user understand
 why data is not saved or imported.

 Code: (wp 4.0.1 line 2294)
 {{{
 if ( isset( $post['errors'] ) ) {
                 $errors = $post['errors']; // @todo return me and display
 me!
                 unset( $post['errors'] );
         }
 }}}

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


More information about the wp-trac mailing list