[wp-trac] [WordPress Trac] #46743: A way to detect whether the current theme supports wp_body_open()

WordPress Trac noreply at wordpress.org
Sun Mar 31 22:56:27 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:  normal          |  Milestone:  5.2
Component:  Themes          |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+--------------------
 Background: #12563, #46679.

 With a new `wp_body_open()` template tag  introduced in [45042], what's
 the recommended way for plugin authors to detect whether the current theme
 supports `wp_body_open()`, and use a fallback code otherwise?

 Should we add `body-open` to the list of theme features registered with
 [https://developer.wordpress.org/reference/functions/add_theme_support/
 add_theme_support()], so that plugin authors could check it with
 `current_theme_supports()`?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46743>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list