[wp-trac] [WordPress Trac] #63572: theme.json file variable could be a directory, add check to prevent notices
WordPress Trac
noreply at wordpress.org
Fri Jul 18 06:57:33 UTC 2025
#63572: theme.json file variable could be a directory, add check to prevent notices
---------------------------------------+------------------------------
Reporter: ramon fincken | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-test-info | Focuses:
---------------------------------------+------------------------------
Comment (by ramon fincken):
If this is added in themes/themename/resources
{{{
array_map (
'add_filter',
[
'theme_file_path',
'theme_file_uri',
'parent_theme_file_path',
'parent_theme_file_uri',
],
array_fill ( 0, 4, 'dirname' )
);
}}}
The call will fail without that file check.
I agree this is an error on the theme developers end, therefore we as WP
Core must insert an improved "if" handler.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63572#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list