[wp-trac] [WordPress Trac] #39033: WP REST API: Add `supports` object to `/types` response

WordPress Trac noreply at wordpress.org
Thu Dec 29 17:04:22 UTC 2016


#39033: WP REST API: Add `supports` object to `/types` response
---------------------------------------------+------------------
 Reporter:  timmydcrawford                   |       Owner:
     Type:  enhancement                      |      Status:  new
 Priority:  normal                           |   Milestone:  4.8
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+------------------
Changes (by rachelbaker):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests commit


Comment:

 @tyxla Your patch looked great, thank you for the unit tests as well.  We
 have the item response properties in alphabetical order - minus a special
 exception for `rest_base` which is the last property in the Post Type
 response object.

 In [attachment:39033.1.diff]  I moved the `supports` property above
 `taxonomies` in the response object to keep the semi-alpha order. Marking
 this for commit.

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


More information about the wp-trac mailing list