Changeset 45926 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r45583 r45926 93 93 $id = media_handle_upload( 'async-upload', $post_id ); 94 94 if ( is_wp_error( $id ) ) { 95 echo '<div class="error-div error"> 96 <button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</button> 97 <strong>' . sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' . 98 esc_html( $id->get_error_message() ) . '</div>'; 95 printf( 96 '<div class="error-div error">%s <strong>%s</strong><br />%s</div>', 97 sprintf( 98 '<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">%s</button>', 99 __( 'Dismiss' ) 100 ), 101 sprintf( 102 /* translators: %s: Name of the file that failed to upload. */ 103 __( '“%s” has failed to upload.' ), 104 esc_html( $_FILES['async-upload']['name'] ) 105 ), 106 esc_html( $id->get_error_message() ) 107 ); 99 108 exit; 100 109 }
Note: See TracChangeset
for help on using the changeset viewer.