[wp-trac] [WordPress Trac] #58123: Indicate when a theme supports the Site editor in the Themes REST API response
WordPress Trac
noreply at wordpress.org
Thu Apr 13 01:51:54 UTC 2023
#58123: Indicate when a theme supports the Site editor in the Themes REST API
response
-------------------------+-----------------------------
Reporter: grantmkin | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Keywords:
Focuses: rest-api |
-------------------------+-----------------------------
I currently can't find a way to know if the active theme supports the Site
editor based on the /themes REST API response for that theme.
We have theme supports data for `block-template-parts` in the response,
which can be an indication of Site editor support, but use of this doesn't
seem consistent. For example, Twenty Twenty-Two doesn't declare `block-
template-parts` support, but it supports using the Site editor.
One way to know would be to surface the result of
`WP_Theme::is_block_theme` for each theme (or at least for the active
theme) in the API response.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58123>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list