[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:40:30 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 chrisbliss18):
I should have noted in the ticket details that the patch will allow the
following to work in the same manner:
{{{
locate_template( array( 'members/single/activity.php' ), true );
locate_template( 'members/single/activity.php', true );
}}}
Thus backwards-compatibility is maintained.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15061#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list