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

WordPress Trac noreply at wordpress.org
Thu Mar 7 12:48:38 UTC 2013


#18302: Improve child theme file inheritance by introducing `theme_url()` to locate
a file URI
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:  westi
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  Future
Component:  Template                             |  Release
 Severity:  normal                               |     Version:
 Keywords:  has-patch westi-likes needs-unit-    |  Resolution:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by chipbennett):

 Replying to [comment:66 georgestephanis]:
 > Yeah, we'd suggested that earlier, but occasionally the parent theme
 will want to include a file that they don't want the child theme to
 override.

 That's what `get_template_directory_uri()` is for. There is no need to
 over-complicate ''this'' function, just to duplicate something that Theme
 developers can already do with existing functions.

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


More information about the wp-trac mailing list