Ticket #31687: 31687.2.diff
File 31687.2.diff, 1.2 KB (added by , 10 years ago) |
---|
-
wp-admin/js/customize-controls.js
2118 2118 tmpl = api.settings.documentTitleTmpl; 2119 2119 title = tmpl.replace( '%s', documentTitle ); 2120 2120 document.title = title; 2121 if ( window !== window.parent ) { 2122 window.parent.document.title = document.title; 2123 } 2121 api.trigger( 'title', title ); 2124 2122 }; 2125 2123 2126 2124 /** … … 2799 2797 window.location = api.settings.url.activated; 2800 2798 }); 2801 2799 2800 // Pass titles to the parent 2801 api.bind( 'title', function( newTitle ) { 2802 parent.send( 'title', newTitle ); 2803 }); 2804 2802 2805 // Initialize the connection with the parent frame. 2803 2806 parent.send( 'ready' ); 2804 2807 -
wp-includes/js/customize-loader.js
155 155 Loader.saved( false ); 156 156 } ); 157 157 158 this.messenger.bind( 'title', function( newTitle ){ 159 window.document.title = newTitle; 160 }); 161 158 162 this.pushState( src ); 159 163 160 164 this.trigger( 'open' );