[wp-trac] [WordPress Trac] #57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`
WordPress Trac
noreply at wordpress.org
Tue Jun 27 18:20:18 UTC 2023
#57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`
------------------------------------+---------------------------
Reporter: flixos90 | Owner: spacedmonkey
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.3
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+---------------------------
Changes (by SergeyBiryukov):
* status: closed => reopened
* resolution: fixed =>
Comment:
This appears to cause a fatal error in `wp-admin/load-styles.php` if
`SCRIPT_DEBUG` is disabled:
{{{
Fatal error: Uncaught Error: Call to undefined function
get_theme_file_path() in wp-includes/global-styles-and-settings.php:411
Stack trace:
#0 wp-includes/script-loader.php(1647): wp_theme_has_theme_json()
#1 wp-admin/load-styles.php(49): wp_default_styles(Object(WP_Styles))
#2 {main}
thrown in wp-includes/global-styles-and-settings.php on line 411
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57629#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list