Make WordPress Core

Ticket #47363: 47363.patch

File 47363.patch, 507 bytes (added by timhavinga, 6 years ago)

Prevent link functionality when the primary mouse button is not used

  • src/js/_enqueues/lib/embed-template.js

     
    161161                                href = target.parentElement.getAttribute( 'href' );
    162162                        }
    163163
     164                        // Only clicks from the primary mouse button need to be catched
     165                        if ( e.button !== 0 ) {
     166                                return;
     167                        }
     168
    164169                        /**
    165170                         * Send link target to the parent (embedding) site.
    166171                         */