[wp-trac] [WordPress Trac] #43817: REST API: Include 'formats' attribute on Post Type resource

WordPress Trac noreply at wordpress.org
Mon Apr 23 06:59:34 UTC 2018


#43817: REST API: Include 'formats' attribute on Post Type resource
--------------------------------------+-----------------------
 Reporter:  pento                     |       Owner:  flixos90
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.0
Component:  Post Formats              |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------

Comment (by pento):

 Thanks for this, @flixos90.

 @danielbachhuber has done some more thinking/work on this idea
 ([https://github.com/WordPress/gutenberg/pull/6318 PR]), and I think we
 may move towards a more general data source for grouping all of the "theme
 supports" data together.

 Gutenberg's implementation will probably just expose the necessary data
 somewhere, but I quite like the idea of using this as the first stage of a
 themes controller. I really, ''really'' wouldn't want this to get bogged
 down in trying to implement every conceivable part of a themes controller,
 particularly as Core has no use for a fully featured themes controller at
 this stage. I think a reasonable first step is to expose information about
 the current theme, in the vein of WPCOM's
 [https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/themes/mine/
 themes/mine] endpoint.

 If this single read-only endpoint is implemented with forward
 compatibility in mind (for example, future requirements may include
 listing all themes installed, searching w.org themes, changing themes, and
 maybe even editing theme files 😉), I have no problem with that landing in
 5.0, and iterating on it as we need to expend it.

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


More information about the wp-trac mailing list