[wp-trac] [WordPress Trac] #10408: Standard Naming of Hooks in Themes

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 16 22:42:19 UTC 2009


#10408: Standard Naming of Hooks in Themes
-------------------------+--------------------------------------------------
 Reporter:  dcole07      |       Owner:  dcole07 
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  2.9     
Component:  Themes       |     Version:  2.9     
 Severity:  normal       |    Keywords:  close   
-------------------------+--------------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:12 dcole07]:
 > How could someone insert code into the page div, before (or after) the
 header div, and at the same level as the header div?
 > How could someone insert code into the header div?

 And then, how can you be sure a theme has a header at all? Not all do.

 Even if they did, there are so many possibilities here that a generic hook
 simply cannot work. What happens when a plugin tosses in some clunky code
 into a theme's header that wrecks the layout. It will happen. (I even
 happen on the default theme with sidebars: add a <div style="clear: both">
 in the sidebar, and giggle at the mess.)

 Now, imagine we introduce a dozen more hooks in locations that are
 inconsistently named and styled from a theme to the next. Sadly, it's just
 asking for trouble...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10408#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list