[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:28:58 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 partyfrikadelle):

 Replying to [comment:10 joemcgill]:
 > Thanks for the investigation @partyfrikadelle. I've been struggling to
 reproduce this locally with a default install of WP,

 The Plugin i uploaded should® work on a clean wordpress install. I used it
 on a fresh Docker-Wordpress-Image and just installed wp-downgrade for
 changing the wp-releases.

 > 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?

 I'll test that tomorrow!

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


More information about the wp-trac mailing list