Make WordPress Core

Ticket #56515: 56515.patch

File 56515.patch, 898 bytes (added by hiren1094, 21 months ago)

56515.patch

  • src/js/_enqueues/admin/site-health.js

    diff --git a/src/js/_enqueues/admin/site-health.js b/src/js/_enqueues/admin/site-health.js
    index 4c6ae5ffa4..f6f6bd57be 100644
    a b jQuery( function( $ ) { 
    3535                successTimeout = setTimeout( function() {
    3636                        successElement.addClass( 'hidden' );
    3737                        // Remove the visually hidden textarea so that it isn't perceived by assistive technologies.
    38                         if ( clipboard.clipboardAction.fakeElem && clipboard.clipboardAction.removeFake ) {
    39                                 clipboard.clipboardAction.removeFake();
    40                         }
     38                        if ( 'undefined' !== typeof( clipboard.clipboardAction ) ) {
     39
     40                if (clipboard.clipboardAction.fakeElem && clipboard.clipboardAction.removeFake) {
     41
     42                    clipboard.clipboardAction.removeFake();
     43                }
     44            }
    4145                }, 3000 );
    4246
    4347                // Handle success audible feedback.