[wp-trac] [WordPress Trac] #41126: Customizer does not work if both wp_footer() and wp_head() functions are present in the theme.
WordPress Trac
noreply at wordpress.org
Thu Jun 22 16:28:07 UTC 2017
#41126: Customizer does not work if both wp_footer() and wp_head() functions are
present in the theme.
--------------------------+------------------------------
Reporter: mdifelice | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: administration
--------------------------+------------------------------
Comment (by brentjett@…):
It wouldn't necessarily fix a mal-formed theme, but I would suggest core
offering the ability for a theme author to opt-in to the system rendering
the document wrapper and the theme only be responsible for what outputs
inside the `<body>`.
From an api footprint perspective it could be as simple as:
`add_theme_support( 'html-document' );`
Letting the system render the doctype, head, etc... would ensure more
well-formed themes and take the burden off the theme author to implement
the majority of the hooks the system requires.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41126#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list