[wp-trac] [WordPress Trac] #12563: New action on body open
WordPress Trac
noreply at wordpress.org
Wed Sep 12 21:04:28 UTC 2018
#12563: New action on body open
---------------------------+--------------------------
Reporter: joostdevalk | Owner: joostdevalk
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.0
Component: Bundled Theme | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
---------------------------+--------------------------
Comment (by westonruter):
Replying to [comment:43 joyously]:
> We've gone eight years without it. What's the big deal?
>
> Why isn't `get_header` hook or even `wp_footer` sufficient?
Good precedent for why `wp_body_open()` makes sense I think can be found
in the introduction of support for `title` tag in #18548 (via `title-tag`
theme support). Sure themes and plugins could just put `<title>` in their
`header.php`, but this means lots of duplicated code and it makes it more
difficult for themes, plugins, and core to manipulate the title. In the
same way, having a standard `wp_body_open()` would make it easier for
everyone to add markup to this (increasingly) standard location.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12563#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list