Changeset 42784
- Timestamp:
- 03/05/2018 03:32:54 PM (7 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r42343 r42784 91 91 if ( is_wp_error( $id ) ) { 92 92 echo '<div class="error-div error"> 93 < a class="dismiss" href="#" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</a>93 <button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</button> 94 94 <strong>' . sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' . 95 95 esc_html( $id->get_error_message() ) . '</div>'; -
trunk/src/wp-admin/css/media.css
r42642 r42784 212 212 } 213 213 214 .media-item .error-div a.dismiss { 215 display: block; 214 .media-item .error-div button.dismiss { 216 215 float: right; 217 216 margin: 0 10px 0 15px;
Note: See TracChangeset
for help on using the changeset viewer.