[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
Wed Jul 5 21:06:05 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 ah, good point. The issue is that some of the Customizer
 scripts are enqueued at the `wp_enqueue_scripts` action, so if `wp_head()`
 is not present then this action is not triggered. So to work around this,
 all you need to do is manually call `wp_enqueue_scripts()`.

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


More information about the wp-trac mailing list