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:
Weston Ruter 2016-11-16 22:16:10 +00:00
parent 0dbb9c4248
commit ac9a74eff5
1 changed files with 1 additions and 1 deletions

View File

@ -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' );