[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 19:53:37 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 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 #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 :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57629#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list