Customize: Ensure Close button actually closes customizer (instead of going back) after switching to a different theme inside a customize-loader
iframe.
Fixes #38833. git-svn-id: https://develop.svn.wordpress.org/trunk@39271 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0dbb9c4248
commit
ac9a74eff5
@ -1450,7 +1450,7 @@
|
||||
request = api.requestChangesetUpdate();
|
||||
request.done( function() {
|
||||
$( window ).off( 'beforeunload.customize-confirm' );
|
||||
window.location.href = urlParser.href;
|
||||
top.location.href = urlParser.href;
|
||||
} );
|
||||
request.fail( function() {
|
||||
overlay.removeClass( 'customize-loading' );
|
||||
|
Loading…
Reference in New Issue
Block a user