[wp-trac] [WordPress Trac] #59847: Since WordPress 6.4, the functions.php of a theme moved to a different location using register_theme_directory is no longer called

WordPress Trac noreply at wordpress.org
Wed Nov 8 22:18:12 UTC 2023


#59847: Since WordPress 6.4, the functions.php of a theme moved to a different
location using register_theme_directory is no longer called
-----------------------------+------------------------------------
 Reporter:  partyfrikadelle  |       Owner:  joemcgill
     Type:  defect (bug)     |      Status:  reviewing
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Bootstrap/Load   |     Version:  6.4
 Severity:  critical         |  Resolution:
 Keywords:                   |     Focuses:  template, performance
-----------------------------+------------------------------------

Comment (by joemcgill):

 Thanks for the investigation @partyfrikadelle. I've been struggling to
 reproduce this locally with a default install of WP, but seeing something
 call `get_stylesheet_directory()` early makes sense. I wonder if it would
 be useful for core to reset the globals for `$wp_stylesheet_path` and
 `$wp_template_path` when `register_theme_directory()` is called, just to
 be safe?

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


More information about the wp-trac mailing list