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

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 21:38:38 UTC 2012


#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:  3.5
Component:  Template                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch westi-likes needs-unit-    |
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by georgestephanis):

 Following discussion in IRC, I'll rewrite the patch to add a second
 boolean parameter to theme_url() of $overwritable, defaulting to true.  If
 the user sets it to false, it forces the returned URL to be from the
 parent theme.  Otherwise, it's child first, if it exists, otherwise
 parent.

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


More information about the wp-trac mailing list