[wp-trac] [WordPress Trac] #15061: Allow either array or string to be passed to locate_template
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 10 22:01:56 UTC 2010
#15061: Allow either array or string to be passed to locate_template
--------------------------+-------------------------------------------------
Reporter: chrisbliss18 | Owner: scribu
Type: enhancement | Status: accepted
Priority: normal | Milestone: 3.1
Component: Template | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by scribu):
* owner: => scribu
* status: new => accepted
* milestone: Awaiting Review => 3.1
Comment:
I was annoyed by this too. I think filosofo was put off by the fact that
you use an if / else in the patch, when a simple cast to array would do.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15061#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list