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:
Dominik Schilling
2016-05-01 19:54:27 +00:00
parent 664bb85f1b
commit 823ec71cd6
5 changed files with 3 additions and 20 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 );

File diff suppressed because one or more lines are too long