[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:25:28 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:8 coreyw]:
> Edit: in my case I also need to add `add_filter('theme_root', fn (string
$value): string => $value);` while registering the custom directory for it
to work.
Interesting. Got it working on my Development-Site for our Multisite
Project too, but also had to add a theme_root-filter. Even if i add the
register_theme_directory-Call as the first Call in the mu-plugins i have
to add the filter.
I have no idea at the moment what could call get_stylesheet_directory or
get_template_directory before that.
I'll give it another look tomorrow. Its getting late in germany.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59847#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list