[wp-trac] [WordPress Trac] #57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`
WordPress Trac
noreply at wordpress.org
Wed Jun 28 05:55:20 UTC 2023
#57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`
------------------------------------+---------------------------
Reporter: flixos90 | Owner: spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: Themes | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+---------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"56085" 56085]:
{{{
#!CommitTicketReference repository="" revision="56085"
Script Loader: Prevent fatal error in `load-styles.php`.
Duplicates the code of `get_theme_file_path()` within
`wp_theme_has_theme_json()`. This is to account for the `load-styles.php`
context in which the former function is unavailable.
Follow up to [56073].
Props SergeyBiryukov, oglekler, spacedmonkey, joemcgill, dd32.
Fixes #57629.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57629#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list