[wp-trac] [WordPress Trac] #21506: Standard Theme Hooks
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 4 03:06:11 UTC 2012
#21506: Standard Theme Hooks
---------------------------+------------------------------
Reporter: mfields | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: |
---------------------------+------------------------------
Comment (by iandstewart):
Replying to [comment:29 mfields]:
> Perhaps "after" is not the best naming convention. This relative
relationship naturally suggests that something is missing. maybe it would
be better represented as ()using westi's suggestion about functions:
>
> * wp_masthead()
> * wp_post()
> * wp_comment()
> * wp_colophon()
>
> There is no, before or after at all. Theme developers can use this
function in the most appropriate place in their theme and plugins no not
have to choose whether or not their markup should print above or below the
element. The decision making is in the hands of the theme author.
This is a great idea.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21506#comment:31>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list