[wp-trac] [WordPress Trac] #12563: New action on body open
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 30 12:27:15 UTC 2012
#12563: New action on body open
-----------------------------------------+-----------------------------
Reporter: joostdevalk | Owner: joostdevalk
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion close |
-----------------------------------------+-----------------------------
Comment (by lgedeon):
I like the lead by example method. Let's add this into the themes we can.
They are used as a model for many other themes. This should also be
recommended practice specifically for themes that are built with child
themes in mind. Duplicating header.php or doing the output buffer hack
just to add one thing should not be necessary. body_class() is gaining
wide acceptance, why not body_open as well?
As a theme developer, I would rather add one line that I know is becoming
a standard than insert a custom hook that may never be used by more than
one custom plugin.
There are so many times we need to get something to the top of the page.
Sure sometimes it is ads, but other times it is an announcement,
navigation, a widget area, or any other piece of content that a user might
want. Sure we can do things in CSS and/or JS a lot of times, but page
rendering would be faster with the hook - might even get to do page
caching, and in many cases would just be less breaky.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12563#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list