[wp-trac] [WordPress Trac] #57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`

WordPress Trac noreply at wordpress.org
Mon Feb 6 10:46:07 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.2
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------------

Comment (by spacedmonkey):

 I think we should consider also merge
 [https://github.com/WordPress/gutenberg/pull/45831 this] at the same time.

 The use case here, is if I am developer, I want to use filter the location
 of the theme.json to load from my plugin or somewhere, I would use the
 `theme_file_path` filter.

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


More information about the wp-trac mailing list