Make WordPress Core

Changeset 20250


Ignore:
Timestamp:
03/22/2012 02:39:03 AM (15 years ago)
Author:
koopersmith
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/customize-loader.dev.js

    r20133 r20250  
    88                        this.element   = $( '#customize-container' );
    99                        this.base      = $( '.admin-url', this.element ).val();
    10                         this.doc_title = $( document ).attr( 'title' );
    1110
    1211                        this.element.on( 'click', '.close-full-overlay', function() {
    … …  
    2322                        params.customize = 'on';
    2423
    25                         this.element.append( '<iframe />' );
    26                         this.iframe = $( 'iframe' ).attr( 'src', this.base + '?' + jQuery.param( params ) );
    27 
    28                         $('iframe').load( function() {
    29                                 title = $(this).contents().find( 'title' ).text();
    30                                 $( document ).attr( 'title', title );
    31                         });
     24                        this.iframe = $( '<iframe />', {
     25                                src: this.base + '?' + jQuery.param( params )
     26                        }).appendTo( this.element );
    3227
    3328                        this.element.fadeIn( 200, function() {
    … …  
    4035                                Loader.iframe = null;
    4136                                Loader.body.removeClass( 'customize-active full-overlay-active' );
    42                                 $( document ).attr( 'title', Loader.doc_title );
    4337                        });
    4438                }
Note: See TracChangeset for help on using the changeset viewer.