Make WordPress Core

Ticket #53035: 53035.patch

File 53035.patch, 691 bytes (added by mukesh27, 4 years ago)
  • wp-admin/js/privacy-tools.js

     
    277277                var $parent,
    278278                        range,
    279279                        $target = $( event.target ),
    280                         copiedNotice = $target.siblings( '.success' );
     280                        copiedNotice = $target.closest( 'button.privacy-text-copy' ).siblings( '.success' );
    281281
    282282                clearTimeout( copiedNoticeTimeout );
    283283
    284                 if ( $target.is( 'button.privacy-text-copy' ) ) {
     284                if ( $target.closest( 'button.privacy-text-copy' ).length ) {
    285285                        $parent = $target.closest( '.privacy-settings-accordion-panel' );
    286286
    287287                        if ( $parent.length ) {