summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes/class-wp-upgrader-skin.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
commitfa9a33d818470a5796f0ff8797f98b510ed8de18 (patch)
treebde6a1eede376f9b5df5898ce812330152984d8e /wp-admin/includes/class-wp-upgrader-skin.php
parentReleasing progress-linux version 6.4.3+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.tar.xz
wordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.zip
Merging upstream version 6.5+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-admin/includes/class-wp-upgrader-skin.php')
-rw-r--r--wp-admin/includes/class-wp-upgrader-skin.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/wp-admin/includes/class-wp-upgrader-skin.php b/wp-admin/includes/class-wp-upgrader-skin.php
index 598724f..83b4ba4 100644
--- a/wp-admin/includes/class-wp-upgrader-skin.php
+++ b/wp-admin/includes/class-wp-upgrader-skin.php
@@ -240,7 +240,14 @@ class WP_Upgrader_Skin {
if ( defined( 'IFRAME_REQUEST' ) ) {
echo '<script type="text/javascript">
if ( window.postMessage && JSON ) {
- window.parent.postMessage( JSON.stringify( { action: "decrementUpdateCount", upgradeType: "' . $type . '" } ), window.location.protocol + "//" + window.location.hostname );
+ window.parent.postMessage(
+ JSON.stringify( {
+ action: "decrementUpdateCount",
+ upgradeType: "' . $type . '"
+ } ),
+ window.location.protocol + "//" + window.location.hostname
+ + ( "" !== window.location.port ? ":" + window.location.port : "" )
+ );
}
</script>';
} else {