[wp-trac] [WordPress Trac] #63253: Theme REST API: expose "has_theme_json" field

WordPress Trac noreply at wordpress.org
Mon May 5 01:51:48 UTC 2025


#63253: Theme REST API: expose "has_theme_json" field
--------------------------------------+------------------------------
 Reporter:  wildworks                 |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by wildworks):

 Update: I realized that using `wp_theme_has_theme_json()` in the REST API
 response isn't correct. Because the `wp_theme_has_theme_json()` function
 returns results based on the active theme.

 See
 https://github.com/WordPress/gutenberg/pull/69857#issuecomment-2801814369
 for more details.

 I think we need to add a new `has_theme_json` method to the `WP_Theme`
 class first, so I submitted #63299.

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


More information about the wp-trac mailing list