Customizer: fix stuck urls and preview white screens after repeated save and activates. Props koopersmith. fixes #20868
git-svn-id: http://core.svn.wordpress.org/trunk@21029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -98,6 +98,11 @@ if ( typeof wp === 'undefined' )
|
||||
Loader.close();
|
||||
});
|
||||
|
||||
this.messenger.bind( 'activated', function( location ) {
|
||||
if ( location )
|
||||
window.location = location;
|
||||
});
|
||||
|
||||
hash = src.split('?')[1];
|
||||
|
||||
// Ensure we don't call pushState if the user hit the forward button.
|
||||
|
||||
Reference in New Issue
Block a user