[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
Tue Jul 25 20:07:15 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:  good-first-bug has-patch reporter-   |     Focuses:  template
  feedback                                       |
-------------------------------------------------+-------------------------
Changes (by joemcgill):

 * keywords:  good-first-bug has-patch => good-first-bug has-patch reporter-
     feedback
 * owner:  (none) => thekt12


Comment:

 This looks likely to be a duplicate of #18298. @thekt12 can you confirm?
 If so, we can likely close this ticket and update the PR to point to the
 other ticket. Also, we need to be mindful of the performance effects of a
 change, given that is what caused the fix to the other ticket to be
 reverted.

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


More information about the wp-trac mailing list