[wp-trac] [WordPress Trac] #22037: Customizer: Live preview fetches page but does not display (was: Live preview fetches page but does not display)

WordPress Trac noreply at wordpress.org
Sat Oct 27 18:31:08 UTC 2012


#22037: Customizer: Live preview fetches page but does not display
-------------------------------------------------+-------------------------
 Reporter:  marcoliverteschke                    |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Appearance                           |  Review
 Severity:  normal                               |     Version:  3.4.2
 Keywords:  needs-testing needs-refresh needs-   |  Resolution:
  patch                                          |
-------------------------------------------------+-------------------------
Changes (by wdfee):

 * keywords:  needs-testing => needs-testing needs-refresh needs-patch


Comment:

 ok, I've found it! Now I need you developers to find the right solution:
 [[BR]]
 it's in the /wp-admin/js/customize-controls.js line 363-373:

 {{{
 // Check for a signature in the request.
 index = response.lastIndexOf( signature );
 if ( -1 === index || index < response.lastIndexOf('</html>') ) {
         deferred.rejectWith( self, [ 'unsigned' ] );
         //return;
 }

 // Strip the signature from the request.
 response = response.slice( 0, index ) + response.slice( index +
 signature.length );

 // Create the iframe and inject the html content.
 self.iframe = $('<iframe />').appendTo( self.container );

 }}}
 You see, I've commented out the return because then it works in all
 mentioned browsers. I checked the signature variable, it's undefined, but
 I didn't had the time yet to figure out why and where it would be defined.
 This is the return that stops the customizer preview from displaying and
 just stops processing without errors.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22037#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list