Changeset 31885
- Timestamp:
- 03/25/2015 05:25:01 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r31706 r31885 1930 1930 this.query = $.extend( params.query || {}, { customize_messenger_channel: this.channel() }); 1931 1931 1932 // This avoids SecurityErrors when setting a window object in x-origin iframe'd scenarios. 1933 this.targetWindow.set = function( to ) { 1934 var from = this._value; 1935 1936 to = this._setter.apply( this, arguments ); 1937 to = this.validate( to ); 1938 1939 if ( null === to || from === to ) { 1940 return this; 1941 } 1942 1943 this._value = to; 1944 this._dirty = true; 1945 1946 this.callbacks.fireWith( this, [ to, from ] ); 1947 1948 return this; 1949 }; 1950 1932 1951 this.run( deferred ); 1933 1952 }, … … 2119 2138 title = tmpl.replace( '%s', documentTitle ); 2120 2139 document.title = title; 2121 if ( window !== window.parent ) { 2122 window.parent.document.title = document.title; 2123 } 2140 api.trigger( 'title', title ); 2124 2141 }; 2125 2142 … … 2800 2817 }); 2801 2818 2819 // Pass titles to the parent 2820 api.bind( 'title', function( newTitle ) { 2821 parent.send( 'title', newTitle ); 2822 }); 2823 2802 2824 // Initialize the connection with the parent frame. 2803 2825 parent.send( 'ready' ); -
trunk/src/wp-includes/js/customize-loader.js
r31704 r31885 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
Note: See TracChangeset
for help on using the changeset viewer.