Changeset 60520 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 07/29/2025 01:23:27 AM (8 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/async-upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r60263 r60520 143 143 /* translators: %s: Name of the file that failed to upload. */ 144 144 __( '%s has failed to upload.' ), 145 esc_js( $_FILES['async-upload']['name'] )145 $_FILES['async-upload']['name'] 146 146 ); 147 147 148 echo "<script>_.delay(function() {wp.a11y.speak('" . esc_js( $speak_message ) . "');}, 1500);jQuery( 'button#{$button_unique_id}' ).on( 'click', function() {jQuery(this).parents('div.media-item').slideUp(200, function(){jQuery(this).remove();wp.a11y.speak( wp.i18n.__( 'Error dismissed.' ) );jQuery( '#plupload-browse-button' ).trigger( 'focus' );})});</script>\n";148 echo '<script>_.delay(function() {wp.a11y.speak(' . wp_json_encode( $speak_message ) . ");}, 1500);jQuery( 'button#{$button_unique_id}' ).on( 'click', function() {jQuery(this).parents('div.media-item').slideUp(200, function(){jQuery(this).remove();wp.a11y.speak( wp.i18n.__( 'Error dismissed.' ) );jQuery( '#plupload-browse-button' ).trigger( 'focus' );})});</script>\n"; 149 149 exit; 150 150 }
Note: See TracChangeset
for help on using the changeset viewer.