Make WordPress Core

Changeset 37973


Ignore:
Timestamp:
07/05/2016 03:31:24 PM (8 years ago)
Author:
swissspidy
Message:

Update/Install: Fix plugin updates from the details modal on update-core.php.

The plugin details modal has been greatly improved in [37714]. However, Shiny Updates aren't yet implemented on the WordPress Updates screen. Therefore, we need to fall back to The Bleak Screen of Sadness. Otherwise nothing happens when trying to install an update from inside the modal.

Props Nikschavan.
Fixes #37126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r37971 r37973  
    20822082            $.support.postMessage = !! window.postMessage;
    20832083
    2084             if ( false === $.support.postMessage || null === target ) {
     2084            if ( false === $.support.postMessage || null === target || -1 !== window.parent.location.pathname.indexOf( 'update-core.php' ) ) {
    20852085                return;
    20862086            }
Note: See TracChangeset for help on using the changeset viewer.