[wp-trac] [WordPress Trac] #58866: Avoid consts inside `locate_template` as it gives incorrect template path after switch_theme

WordPress Trac noreply at wordpress.org
Thu Jul 27 12:24:58 UTC 2023


#58866: Avoid consts inside `locate_template` as it gives incorrect template path
after switch_theme
--------------------------+-----------------------
 Reporter:  thekt12       |       Owner:  thekt12
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  6.4
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  template
--------------------------+-----------------------
Changes (by mukesh27):

 * keywords:  good-first-bug has-patch reporter-feedback => has-patch


Comment:

 Thanks @thekt12. Could we close this ticket and discuss the next step in
 the #18298?[[Image()]]

 Do you have a POC for using global variables?

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


More information about the wp-trac mailing list