[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
Thu Feb 18 22:34:22 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
--------------------------+-------------------------------------------------
Comment(by ptahdunbar):
Replying to [comment:2 westi]:
> I am strongly against having an action in this function which gets
called whatever the $slug.
> ...
> We shouldn't encourage people to hook into a really generic action here
to do things they should be hooking in for specific situations where they
need to do something.
>
> Otherwise we end up calling a lot of code unnecessarily.
Ok, that's a compromise. However, there _needs_ to be a filter. Related:
#11242
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12248#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list