Skip to content

Commit

Permalink
Merge branch 'WordPress:trunk' into Trac-55521--dashicons-at-a-glance
Browse files Browse the repository at this point in the history
  • Loading branch information
kebbet authored Dec 1, 2023
2 parents 7963798 + 0ce733c commit 4e9ef37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/wp-admin/includes/class-wp-upgrader-skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,14 @@ protected function decrement_update_count( $type ) {
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 {
Expand Down

0 comments on commit 4e9ef37

Please sign in to comment.