[wp-trac] [WordPress Trac] #59810: Global styles revisions: add route for single styles revisions

WordPress Trac noreply at wordpress.org
Mon Nov 6 03:51:58 UTC 2023


#59810: Global styles revisions: add route for single styles revisions
-------------------------+-------------------------------------------------
 Reporter:  ramonopoly   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  6.5
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch has-unit-tests gutenberg-
  Focuses:  rest-api     |  merge
-------------------------+-------------------------------------------------
 The [https://github.com/WordPress/wordpress-
 develop/blob/0c97999fc46a888cd3de123d0f19311eb4112d08/src/wp-includes
 /rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php
 Global Styles Revision Controller] is a bespoke REST API endpoint that
 returns revisions for global styles in the Site Editor.


 Currently it only has a route to retrieve a collection of revisions
 `get_items`.

 To make it consistent with other post types, we should add the single
 revision route, e.g., `/wp/v2/global-styles/${ parentId }/revisions/${
 revisionsId }`

 A PR to add this to Gutenberg is here:
 https://github.com/WordPress/gutenberg/pull/55827

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59810>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list