Ticket #35320: 35320.diff
File 35320.diff, 1.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/js/customize-controls.js
3732 3732 }); 3733 3733 } ); 3734 3734 3735 /*3736 * When activated, let the loader handle redirecting the page.3737 * If no loader exists, redirect the page ourselves (if a url exists).3738 */3739 api.bind( 'activated', function() {3740 if ( parent.targetWindow() )3741 parent.send( 'activated', api.settings.url.activated );3742 else if ( api.settings.url.activated )3743 window.location = api.settings.url.activated;3744 });3745 3746 3735 // Pass titles to the parent 3747 3736 api.bind( 'title', function( newTitle ) { 3748 3737 parent.send( 'title', newTitle ); -
src/wp-includes/js/customize-loader.js
150 150 // Prompt AYS dialog when navigating away 151 151 $( window ).on( 'beforeunload', this.beforeunload ); 152 152 153 this.messenger.bind( 'activated', function( location ) {154 if ( location ) {155 window.location = location;156 }157 });158 159 153 this.messenger.bind( 'saved', function () { 160 154 Loader.saved( true ); 161 155 } );