From d17d567661f2b7a3a44e93e9f33f4b627779786d Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 5 Jul 2016 15:31:24 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37973 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/updates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index 9f05f77c88..37291e0a3d 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -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; }