diff --git a/src/wp-admin/async-upload.php b/src/wp-admin/async-upload.php index ffdfda097e..cf4670bbb1 100644 --- a/src/wp-admin/async-upload.php +++ b/src/wp-admin/async-upload.php @@ -90,7 +90,7 @@ if ( isset( $_REQUEST['post_id'] ) ) { $id = media_handle_upload( 'async-upload', $post_id ); if ( is_wp_error( $id ) ) { echo '
- ' . __( 'Dismiss' ) . ' + ' . sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '
' . esc_html( $id->get_error_message() ) . '
'; exit; diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css index f84741bc1d..36ddb94afd 100644 --- a/src/wp-admin/css/media.css +++ b/src/wp-admin/css/media.css @@ -211,8 +211,7 @@ padding: 10px 0 10px 14px; } -.media-item .error-div a.dismiss { - display: block; +.media-item .error-div button.dismiss { float: right; margin: 0 10px 0 15px; }