diff --git src/wp-admin/async-upload.php b/async-upload.php
index cf4670b..0efa57b 100755
old
|
new
|
$id = media_handle_upload( 'async-upload', $post_id ); |
91 | 91 | if ( is_wp_error( $id ) ) { |
92 | 92 | echo '<div class="error-div error"> |
93 | 93 | <button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</button> |
94 | | <strong>' . sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' . |
| 94 | <strong>' . |
| 95 | /* translators: %s: Name of the file that has failed to upload. */ |
| 96 | sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' . |
95 | 97 | esc_html( $id->get_error_message() ) . '</div>'; |
96 | 98 | exit; |
97 | 99 | } |