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

WordPress Trac noreply at wordpress.org
Sun Aug 7 09:40:07 UTC 2016


#18302: Improve child theme file inheritance by introducing a function to locate a
file URI
----------------------------------------------+--------------------------
 Reporter:  johnbillion                       |       Owner:  johnbillion
     Type:  enhancement                       |      Status:  reviewing
 Priority:  high                              |   Milestone:  4.7
Component:  Themes                            |     Version:
 Severity:  normal                            |  Resolution:
 Keywords:  has-patch needs-unit-tests early  |     Focuses:  template
----------------------------------------------+--------------------------

Comment (by gma992):

 Replying to [comment:90 JakePT]:
 > @gma992 I would assume the correct usage in that case would be:
 > {{{#!php
 > echo theme_file_uri('/js/foo.js');
 > }}}

 Yes indeed, If '/js/foo.js' is passed as a parameter it pass the test, but
 the intention is to grab only the name of the file, isn't it? not just for
 consistency with similar functions but also because themes or plugins can
 have pretty different folder organization, just guessing here.

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


More information about the wp-trac mailing list