Changeset 56600 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 09/17/2023 03:31:32 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/async-upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r52646 r56600 114 114 $id = media_handle_upload( 'async-upload', $post_id ); 115 115 if ( is_wp_error( $id ) ) { 116 printf(117 ' <div class="error-div error">%s <strong>%s</strong><br />%s</div>',116 $message = sprintf( 117 '%s <strong>%s</strong><br />%s', 118 118 sprintf( 119 119 '<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">%s</button>', … … 126 126 ), 127 127 esc_html( $id->get_error_message() ) 128 ); 129 wp_admin_notice( 130 $message, 131 array( 132 'additional_classes' => array( 'error-div', 'error' ), 133 'paragraph_wrap' => false, 134 ) 128 135 ); 129 136 exit;
Note: See TracChangeset
for help on using the changeset viewer.