[wp-trac] [WordPress Trac] #46743: A way to detect whether the current theme supports wp_body_open()
WordPress Trac
noreply at wordpress.org
Tue Apr 16 16:26:16 UTC 2019
#46743: A way to detect whether the current theme supports wp_body_open()
-----------------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 5.2
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+---------------------
Comment (by williampatton):
A method involving the use of `add_theme_support()` is doable but I don't
like the idea of having to define both the hook in the template and a
support string in my setup functions. It seems redundant to need both.
Could we instead add a support method late (directly inside the
`wp_body_open` hook) If a theme includes the hook in their template then
it auto-adds the support. This would mean that plugin developers would
need to do late detection.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46743#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list