[wp-trac] [WordPress Trac] #41362: Make locate_template() filterable to change the template locations

WordPress Trac noreply at wordpress.org
Wed Feb 4 16:22:29 UTC 2026


#41362: Make locate_template() filterable to change the template locations
-------------------------------------------------+-------------------------
 Reporter:  kylejennings83                       |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Themes                               |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion reporter-      |     Focuses:  template
  feedback                                       |
-------------------------------------------------+-------------------------
Changes (by huzaifaalmesbah):

 * keywords:  has-patch needs-testing 2nd-opinion => has-patch 2nd-opinion
     reporter-feedback


Comment:

 Tested against trunk (7.0-alpha-61215-src).

 Attempted to apply the latest patch using `grunt patch:41362`, but it no
 longer applies cleanly and produces rejected hunks in wp-
 includes/template.php.

 As this is an enhancement and the patch is quite old, it likely needs a
 refresh to match current trunk before it can be tested.

 Requesting reporter/component maintainer feedback on whether this
 enhancement is still relevant.

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


More information about the wp-trac mailing list