[wp-trac] [WordPress Trac] #12248: get_generic_template action should pass both slug and name as parameters
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 16 08:54:44 UTC 2010
#12248: get_generic_template action should pass both slug and name as parameters
--------------------------+-------------------------------------------------
Reporter: ptahdunbar | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Template | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
get_generic_template() has a do_action call that gets fired when it's
used.[[BR]]
`do_action( "get_generic_template_{$slug}", $name );`
I propose to change it into this:[[BR]]
`do_action( 'get_generic_template', $slug, $name );`
So other themes and plugins can easily hook into the
'get_generic_template' and run code without initially having to know the
slug.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12248>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list