[wp-trac] [WordPress Trac] #41126: Customizer does not work if both wp_footer() and wp_head() functions are not present in the theme.

WordPress Trac noreply at wordpress.org
Tue Jul 4 22:26:14 UTC 2017


#41126: Customizer does not work if both wp_footer() and wp_head() functions are
not present in the theme.
-------------------------+-----------------------------
 Reporter:  mdifelice    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Customize    |     Version:  4.7
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+-----------------------------

Comment (by westonruter):

 @mdifelice I'm not sure I understand. If `wp_footer` is missing then what
 is executed once? The key thing you're needing to account for is whether
 or not the `keep-alive` messages are being sent from the preview to the
 pane. See https://github.com/WordPress/wordpress-develop/blob/4.8.0/src
 /wp-includes/js/customize-preview.js#L537-L595

 If `customize-preview.js` gets written out to the preview window (either
 via `wp_head()` or `wp_footer()`), then these messages will get sent and
 the Customizer will keep the `previewerAlive` state as `true`.

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


More information about the wp-trac mailing list