[wp-trac] [WordPress Trac] #21791: Enhancement: locate_template() support for multiple file types (not just .php)

WordPress Trac noreply at wordpress.org
Mon Feb 17 23:13:58 UTC 2014


#21791: Enhancement: locate_template() support for multiple file types (not just
.php)
-------------------------+------------------------------
 Reporter:  benallfree   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  close        |     Focuses:  template
-------------------------+------------------------------
Changes (by obenland):

 * keywords:   => close


Comment:

 `locate_template()` is not specific to PHP files. It can be passed an
 array of any file names and it will go through them, check if they exist,
 and include them.

 The scenario described above could be managed by either the
 `template_include` or the `{$type}_template` filter.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21791#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list