[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 20:32:48 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:
------------------------------------+---------------------------
Comment (by spacedmonkey):
Replying to [comment:24 SergeyBiryukov]:
> Replying to [comment:23 oglekler]:
> > Loaded functions should not depend on whether global debug constants
are defined or not 🤔 If this is the case, we need to solve this too. Am I
missing something architectural?
>
> `wp-admin/load-styles.php` was introduced in [10357] / #8628 and is
specifically designed to be as lightweight as possible, so it skips
loading most of WordPress core files, except for `script-loader.php` and
very few dependencies.
>
> It may be retired in the future as per #57548, but we're not quite there
yet :)
Good spot @SergeyBiryukov . Here is a fix https://github.com/WordPress
/wordpress-develop/pull/4727 . It is simple.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57629#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list