Customize: Don't auto-close the customizer when a new theme is activated.
Props celloexpressions. Fixes #35320. Built from https://develop.svn.wordpress.org/trunk@37339 git-svn-id: http://core.svn.wordpress.org/trunk@37305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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 );
|
||||
|
||||
2
wp-admin/js/customize-controls.min.js
vendored
2
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user