[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:25:00 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 westi):

 I am strongly against having an action in this function which gets called
 whatever the $slug.

 I am quite happy to add the $slug as one of the arguments probably after
 the name so if people want to hook the same function on twice they can.

 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.

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


More information about the wp-trac mailing list