[wp-trac] [WordPress Trac] #15061: Allow either array or string to be passed to locate_template

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 7 17:44:14 UTC 2010


#15061: Allow either array or string to be passed to locate_template
--------------------------+-------------------------------------------------
 Reporter:  chrisbliss18  |       Owner:                 
     Type:  enhancement   |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Template      |     Version:                 
 Severity:  normal        |    Keywords:  has-patch      
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [ticket:15061 chrisbliss18]:
 > Note that this is just a very small sampling. In total, locate_template
 is used 89 times in BuddyPress

 Doesn't this fact argue against adding any unnecessary logic that would
 slow performance?  What is the advantage of using strings alone?

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


More information about the wp-trac mailing list