diff --git src/wp-admin/async-upload.php src/wp-admin/async-upload.php
index 864f2be654..e5857b5583 100644
|
|
if ( is_wp_error( $id ) ) { |
116 | 116 | $message = sprintf( |
117 | 117 | '%s <strong>%s</strong><br />%s', |
118 | 118 | sprintf( |
119 | | '<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">%s</button>', |
| 119 | '<button type="button" class="dismiss button-link">%s</button>', |
120 | 120 | __( 'Dismiss' ) |
121 | 121 | ), |
122 | 122 | sprintf( |
… |
… |
if ( is_wp_error( $id ) ) { |
133 | 133 | 'paragraph_wrap' => false, |
134 | 134 | ) |
135 | 135 | ); |
| 136 | echo "<script type=\"text/javascript\">jQuery( 'button.dismiss' ).on( 'click', function() {jQuery(this).parents('div.media-item').slideUp(200, function(){jQuery(this).remove();})});</script>\n"; |
136 | 137 | exit; |
137 | 138 | } |
138 | 139 | |