[wp-trac] [WordPress Trac] #35263: Customise page will not load if there is index.html holding page (i.e)

WordPress Trac noreply at wordpress.org
Mon Jan 4 05:36:14 UTC 2016


#35263: Customise page will not load if there is index.html holding page (i.e)
-----------------------------------+----------------------
 Reporter:  thorvald.hallvardsson  |       Owner:
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:
Component:  Customize              |     Version:
 Severity:  normal                 |  Resolution:  wontfix
 Keywords:                         |     Focuses:
-----------------------------------+----------------------
Changes (by westonruter):

 * status:  new => closed
 * version:  4.4 =>
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 The issue is the Customizer signature that gets appended to the Ajax
 response. This signature gets injected at shutdown (see
 `WP_Customize_Manager::customize_preview_signature()`) and is a signal to
 the Customizer that it the response succeeded. If the response lacks this
 signature, then the response is rejected and the preview remains empty.
 I'm not totally sure why this approach was taken to check for valid Ajax
 responses, but I believe this is the problem you're encountering.

 There are also JS scripts that get injected into the Customizer preview
 for WordPress-generated responses, and if these aren't loaded then they
 won't notify the Customizer pane that the preview has loaded successfully.
 So basically, the Customizer isn't able to load a static HTML page into
 the preview. It may be able to once #30028 is implemented, since the
 iframe would be loaded with a natural URL as opposed to an Ajax request +
 `document.write()`. In the mean time, I suggest reworking your site to
 ensure the homepage gets generated by WordPress and that a static HTML
 page isn't served.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35263#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list