WordPress.org

Make WordPress Core

Changeset 42493 for branches/4.9


Ignore:
Timestamp:
01/16/2018 08:57:09 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Fix the plugin details modal "Close" button after [42443].

Props rinkuyadav999.
Merges [42491] to the 4.9 branch.
Fixes #43082.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/js/plugin-install.js

    r42456 r42493  
    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.
    152      */
    153     $( 'body' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) {
     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.
     154     */
     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;
Note: See TracChangeset for help on using the changeset viewer.