[wp-trac] [WordPress Trac] #64087: Deprecated urlencode() passing null warning during load-styles.php because get_stylesheet_directory() returns empty
WordPress Trac
noreply at wordpress.org
Tue Feb 24 23:54:35 UTC 2026
#64087: Deprecated urlencode() passing null warning during load-styles.php because
get_stylesheet_directory() returns empty
-------------------------+-------------------------------------------------
Reporter: jerclarke | Owner: (none)
Type: defect | Status: new
(bug) |
Priority: normal | Milestone: 7.0
Component: Script | Version:
Loader |
Severity: minor | Resolution:
Keywords: php8 | Focuses: administration, performance, php-
reporter-feedback | compatibility
-------------------------+-------------------------------------------------
Comment (by jerclarke):
@westonruter Thanks for asking but the patch doesn't seem to have any
effect, applied it to the live site and the log is still full of errors.
The part of my bug I tracked down is in `global-styles-and-
settings.php`:`wp_theme_has_theme_json()`:
{{{
$theme_has_support[ $stylesheet ] = file_exists( $path );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64087#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list