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.
Built from https://develop.svn.wordpress.org/trunk@37973


git-svn-id: http://core.svn.wordpress.org/trunk@37914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler
2016-07-05 15:32:28 +00:00
parent 3d6fc45834
commit 600e511533
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2081,7 +2081,7 @@
$.support.postMessage = !! window.postMessage;
if ( false === $.support.postMessage || null === target ) {
if ( false === $.support.postMessage || null === target || -1 !== window.parent.location.pathname.indexOf( 'update-core.php' ) ) {
return;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-beta1-37972';
$wp_version = '4.6-beta1-37973';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.