Ticket #33643: 33643.patch
File 33643.patch, 793 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/async-upload.php
89 89 if ( is_wp_error($id) ) { 90 90 echo '<div class="error-div error"> 91 91 <a class="dismiss" href="#" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __('Dismiss') . '</a> 92 <strong>' . sprintf(__('“%s” has failed to upload due to an error'), esc_html($_FILES['async-upload']['name']) ) . '</strong><br />' .92 <strong>' . sprintf(__('“%s” has failed to upload.'), esc_html($_FILES['async-upload']['name']) ) . '</strong><br />' . 93 93 esc_html($id->get_error_message()) . '</div>'; 94 94 exit; 95 95 }