mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user