[wp-trac] [WordPress Trac] #36091: Resolve location of files in template and stylesheet directories

WordPress Trac noreply at wordpress.org
Sat Mar 5 03:50:36 UTC 2016


#36091: Resolve location of files in template and stylesheet directories
-------------------------------------------+------------------------------
 Reporter:  screamingdev                   |       Owner:
     Type:  feature request                |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Themes                         |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:  template
-------------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 > For better inheritance parent and child-themes can use the new
 `get_theme_direcotry( $file )` function. It looks up if the required file
 is given in the child-theme. If so, then this one will be returned.
 Otherwise it gives you the desired path pointing to the parent-theme.

 How is that different from
 [https://developer.wordpress.org/reference/functions/locate_template/
 locate_template()]?

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


More information about the wp-trac mailing list