Customize: Don't auto-close the customizer when a new theme is activated.

Props celloexpressions.
Fixes #35320.

git-svn-id: https://develop.svn.wordpress.org/trunk@37339 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90)
2016-05-01 19:53:13 +00:00
parent 87ae28c40b
commit 5d3bf61e3b
2 changed files with 0 additions and 17 deletions

View File

@@ -3722,17 +3722,6 @@
});
} );
/*
* When activated, let the loader handle redirecting the page.
* If no loader exists, redirect the page ourselves (if a url exists).
*/
api.bind( 'activated', function() {
if ( parent.targetWindow() )
parent.send( 'activated', api.settings.url.activated );
else if ( api.settings.url.activated )
window.location = api.settings.url.activated;
});
// Pass titles to the parent
api.bind( 'title', function( newTitle ) {
parent.send( 'title', newTitle );

View File

@@ -150,12 +150,6 @@ window.wp = window.wp || {};
// Prompt AYS dialog when navigating away
$( window ).on( 'beforeunload', this.beforeunload );
this.messenger.bind( 'activated', function( location ) {
if ( location ) {
window.location = location;
}
});
this.messenger.bind( 'saved', function () {
Loader.saved( true );
} );