[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 21:37:20 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):

 Unfortunately, it's not that simple. I tried to create an MRE and wrote a
 simple plugin for that, which registers a theme folder in the plugin
 directory as an additional theme folder. There, I stored a very simple
 theme with a function in the functions.php, which is called from the
 index.php.

 In this very simple function, it works. But @coreyw's hint still seems to
 be correct. Probably in my setup, the get_stylesheet_directory() is called
 somewhere in advance, before my plugin can register the respective
 folders.

 I continue to work on figuring out exactly what the issue is...

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


More information about the wp-trac mailing list