[wp-trac] [WordPress Trac] #45016: REST API: Expose theme_supports data through a minimal theme controller

WordPress Trac noreply at wordpress.org
Mon Oct 15 18:48:18 UTC 2018


#45016: REST API: Expose theme_supports data through a minimal theme controller
------------------------------------------+-----------------------
 Reporter:  danielbachhuber               |       Owner:  desrosj
     Type:  enhancement                   |      Status:  assigned
 Priority:  normal                        |   Milestone:  5.0
Component:  General                       |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  rest-api
------------------------------------------+-----------------------

Comment (by kadamwhite):

 Updates from discussion in Slack and on GitHub
 (https://github.com/wordPress/gutenberg/pull/10518):

 - For 5.0, the theme controller need not expose anything but the active
 theme, and whether that theme supports post formats and thumbnails.
 - The only new endpoint will be `/wp/v2/themes`. We will query for active
 theme by passing a `?status=active` query parameter.
 `themes?status=active` will return an array containing an object
 representing the active theme.
 - For 5.0, we will not return any response on `/wp/v2/themes` if the
 `?status=active` query is omitted, and no other themes than the active one
 will be represented in the endpoint.
 - Endpoint access is limited to authenticated users with `edit_posts`.

 The PR linked above implements this endpoint for Gutenberg; after merge,
 it can be moved here for core merge.

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


More information about the wp-trac mailing list