From 8b925b42df8f3e47d7d494aff856dd99e9b9ad6e Mon Sep 17 00:00:00 2001
From: Sarath A R <sarath@awsm.in>
Date: Fri, 15 Dec 2023 21:55:38 +0530
Subject: [PATCH] Issue #60074 Fixed
---
src/js/_enqueues/vendor/plupload/handlers.js | 2 +-
src/wp-admin/async-upload.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/js/_enqueues/vendor/plupload/handlers.js b/src/js/_enqueues/vendor/plupload/handlers.js
index e4ff962c97..ceaefa508b 100644
a
|
b
|
jQuery( document ).ready( function( $ ) { |
418 | 418 | setUserSetting( 'urlbutton', c[1] ); |
419 | 419 | target.siblings( '.urlfield' ).val( target.data( 'link-url' ) ); |
420 | 420 | } |
421 | | } else if ( target.is( 'a.dismiss' ) ) { |
| 421 | } else if ( target.is( 'a.dismiss, button.dismiss' ) ) { |
422 | 422 | target.parents( '.media-item' ).fadeOut( 200, function() { |
423 | 423 | $( this ).remove(); |
424 | 424 | } ); |
diff --git a/src/wp-admin/async-upload.php b/src/wp-admin/async-upload.php
index 864f2be654..6d758010ac 100644
a
|
b
|
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( |