From 1504804b7c37694372a4544010f793ff9d4ffb0d Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 30 Sep 2019 00:04:46 +0000 Subject: [PATCH] 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 --- src/js/_enqueues/wp/updates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js index 367bdf0284..ee5bf3cc58 100644 --- a/src/js/_enqueues/wp/updates.js +++ b/src/js/_enqueues/wp/updates.js @@ -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 ) {