[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 16:12:13 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 needs-unit-tests | Focuses: template,
| performance
----------------------------------------+----------------------------------
Comment (by kdowns):
@joemcgill Had a thought about the memoization so drop it in here as a
possible consideration going forwards. Previously,
`get_stylesheet_directory()` always returned a string value regardless of
the stack and how early it was called.
With memoization and the proposed PR, there are cases when early calls to
`get_stylesheet_directory()` will return as null. Are there potential
concerns if the value is null on early calls? This doesn't directly affect
anything I'm attempting to do on the plugin end as my hook will assign it
as expected, but it might be something to consider from a higher WP level.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59847#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list