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
This commit is contained in:
parent
d9de76e2a7
commit
d17d567661
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user