[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 Jul 31 01:40:37 UTC 2011


#18302: Improve child theme file inheritance by introducing a function to locate a
file URI
------------------------------------+------------------------------
 Reporter:  johnbillion             |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Template                |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:  needs-patch => has-patch dev-feedback


Comment:

 Here we have a [attachment:ticket:18302:18302.patch patch] that introduces
 `locate_theme_file()`. It does the same as `locate_template()` but returns
 a URI instead of the file name.

 There's also a [attachment:ticket:18302:18302.twentyeleven.patch patch]
 showing usage in TwentyEleven. A child theme of TwentyEleven could now
 simply include its own version of any of its CSS or JS files and they
 would be used in place of TwentyEleven's.

 To discuss:

  * Does this function need a better name?
  * Do we also need an abstracted wrapper function in `general-
 template.php`?

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


More information about the wp-trac mailing list