WordPress.org

Make WordPress Core

Ticket #43082: 43082.2.diff

File 43082.2.diff, 1001 bytes (added by afercia, 3 years ago)
  • src/wp-admin/js/plugin-install.js

     
    148148
    149149        /*
    150150         * Open the Plugin details modal. The event is delegated to get also the links
    151          * in the plugins search tab, after the AJAX search rebuilds the HTML.
     151         * in the plugins search tab, after the AJAX search rebuilds the HTML. It's
     152         * delegated on the closest ancestor and not on the body to avoid conflicts
     153         * with other handlers, see Trac ticket #43082.
    152154         */
    153         $( 'body' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) {
     155        $( '.wrap' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) {
    154156                // The `data-title` attribute is used only in the Plugin screens.
    155157                var title = $( this ).data( 'title' ) ? plugininstallL10n.plugin_information + ' ' + $( this ).data( 'title' ) : plugininstallL10n.plugin_modal_label;
    156158