mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Theme Customizer: Do not attempt to grab the contents of the preview iframe to populate the window title. Reverts plugins repo revision 508947. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
30e00cd456
commit
545d62e5f0
@ -7,7 +7,6 @@ if ( typeof wp === 'undefined' )
|
||||
this.body = $( document.body );
|
||||
this.element = $( '#customize-container' );
|
||||
this.base = $( '.admin-url', this.element ).val();
|
||||
this.doc_title = $( document ).attr( 'title' );
|
||||
|
||||
this.element.on( 'click', '.close-full-overlay', function() {
|
||||
Loader.close();
|
||||
@ -22,13 +21,9 @@ if ( typeof wp === 'undefined' )
|
||||
open: function( params ) {
|
||||
params.customize = 'on';
|
||||
|
||||
this.element.append( '<iframe />' );
|
||||
this.iframe = $( 'iframe' ).attr( 'src', this.base + '?' + jQuery.param( params ) );
|
||||
|
||||
$('iframe').load( function() {
|
||||
title = $(this).contents().find( 'title' ).text();
|
||||
$( document ).attr( 'title', title );
|
||||
});
|
||||
this.iframe = $( '<iframe />', {
|
||||
src: this.base + '?' + jQuery.param( params )
|
||||
}).appendTo( this.element );
|
||||
|
||||
this.element.fadeIn( 200, function() {
|
||||
Loader.body.addClass( 'customize-active full-overlay-active' );
|
||||
@ -39,7 +34,6 @@ if ( typeof wp === 'undefined' )
|
||||
Loader.iframe.remove();
|
||||
Loader.iframe = null;
|
||||
Loader.body.removeClass( 'customize-active full-overlay-active' );
|
||||
$( document ).attr( 'title', Loader.doc_title );
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user