[wp-trac] [WordPress Trac] #18302: Improve child theme file inheritance by introducing a function to locate a file URI

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 4 17:39:37 UTC 2011


#18302: Improve child theme file inheritance by introducing a function to locate a
file URI
-----------------------------------+------------------------
 Reporter:  johnbillion            |       Owner:  westi
     Type:  enhancement            |      Status:  reviewing
 Priority:  normal                 |   Milestone:  3.3
Component:  Template               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch westi-likes  |
-----------------------------------+------------------------
Changes (by F J Kaiser):

 * cc: 24-7@… (added)


Comment:

 +1

 A drawback of <code>locate_template()</code> is that you can't ''really''
 use it to locate templates from within a plugin directory - which imo
 would make sense if you consider the number of plugins working with custom
 post types. I hope there's a slight chance that
 <code>locate_template_uri()</code> also supports plugin directories, so
 default styles could be packed right with the plugin.

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


More information about the wp-trac mailing list