Upgrade/Install: Fix the Install Now button in the plugin overlay when running WordPress on a specific port.
Props garrett-eclipse, pierlo, afragen. Fixes #48077. git-svn-id: https://develop.svn.wordpress.org/trunk@46348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d6aa801691
commit
1504804b7c
@ -2416,7 +2416,7 @@
|
||||
*/
|
||||
$( window ).on( 'message', function( event ) {
|
||||
var originalEvent = event.originalEvent,
|
||||
expectedOrigin = document.location.protocol + '//' + document.location.hostname,
|
||||
expectedOrigin = document.location.protocol + '//' + document.location.host,
|
||||
message;
|
||||
|
||||
if ( originalEvent.origin !== expectedOrigin ) {
|
||||
|
Loading…
Reference in New Issue
Block a user