[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
Thu Nov 9 01:05:14 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:  has-patch        |     Focuses:  template, performance
-----------------------------+------------------------------------

Comment (by meta4):

 Replying to [comment:26 joemcgill]:

 Hey @joemcgill,

 Just a quick note that your original PR https://github.com/WordPress
 /wordpress-develop/pull/5642/files fixed the issue for me.

 I was attempting to filter 'stylesheet' in a plugin, and having an early
 call by ACF to get_stylesheet_directory() defining $wp_stylesheet_path and
 ignoring my filter.

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


More information about the wp-trac mailing list