[wp-trac] [WordPress Trac] #59949: stylesheet_directory filter called too early
WordPress Trac
noreply at wordpress.org
Wed Nov 22 12:40:58 UTC 2023
#59949: stylesheet_directory filter called too early
--------------------------+-----------------------------
Reporter: jyd44 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.4
Severity: major | Keywords:
Focuses: template |
--------------------------+-----------------------------
With the new version 6.4.1, which introduces the global variable
$wp_stylesheet_path, there is no way to setup a dedicated stylesheet
directory in the theme.
During the very early process of constants initialization , the function
get_directory_stylesheet() is called first in the file default-
constants.php line 422 (called from line 578 in wp-settings.php) and setup
the global variable, and in a second call in
wp_get_active_and_valid_themes() (load.php line 1057, called from wp-
settings.php line 609) before having a change to setup the
'stylesheet_directory' filter in the functions.php file of the theme, as
this one is only loaded line 611 of the file wp-settings.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59949>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list