Make WordPress Core

Ticket #60074: 60074.2.diff

File 60074.2.diff, 1.5 KB (added by mijotj, 12 months ago)

New patch added

  • src/js/_enqueues/vendor/plupload/handlers.js

    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( $ ) { 
    418418                                setUserSetting( 'urlbutton', c[1] );
    419419                                target.siblings( '.urlfield' ).val( target.data( 'link-url' ) );
    420420                        }
    421                 } else if ( target.is( 'a.dismiss' ) ) {
     421                } else if ( target.is( 'a.dismiss, button.dismiss' ) ) {
    422422                        target.parents( '.media-item' ).fadeOut( 200, function() {
    423423                                $( this ).remove();
    424424                        } );
  • src/wp-admin/async-upload.php

    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 ) ) { 
    116116        $message = sprintf(
    117117                '%s <strong>%s</strong><br />%s',
    118118                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>',
    120120                        __( 'Dismiss' )
    121121                ),
    122122                sprintf(