[wp-trac] [WordPress Trac] #15061: Allow either array or string to be passed to locate_template
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 11 02:18:25 UTC 2010
#15061: Allow either array or string to be passed to locate_template
--------------------------+-------------------------------------------------
Reporter: chrisbliss18 | Owner: scribu
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.1
Component: Template | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Comment(by scribu):
Besides traversing a list of possible templates, it also checks the
parent/theme hierarchy, so I'm constantly doing {{{locate_template( array
('specific-file.php'), true )}}} in my theme.
That's why I think also allowing a string is necessary.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15061#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list