[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 16:24:26 UTC 2023
#57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`
------------------------------------+---------------------------
Reporter: flixos90 | Owner: spacedmonkey
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.3
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+---------------------------
Comment (by spacedmonkey):
@oglekler Basically `wp_theme_has_theme_json` and related code, do not use
`get_theme_file_path`. This means that they do not run through the filter
`theme_file_path`. All other theme files use this function. For
consistency and filterable, `get_theme_file_path` should be used
everywhere.n
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57629#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list