Make WordPress Core


Ignore:
Timestamp:
06/28/2023 03:33:23 AM (3 years ago)
Author:
isabel_brison
Message:

REST API: add revisions endpoint for global styles.

Adds an endpoint that returns revisions to the global styles custom post.

Props ramonopoly, peterwilsoncc, spacedmonkey, mukesh27, timothyblynjacobs.
Fixes #58524.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r55457 r56082  
    135135            '/wp/v2/comments/(?P<id>[\\d]+)',
    136136            '/wp/v2/global-styles/(?P<id>[\/\w-]+)',
     137            '/wp/v2/global-styles/(?P<parent>[\d]+)/revisions',
    137138            '/wp/v2/global-styles/themes/(?P<stylesheet>[\/\s%\w\.\(\)\[\]\@_\-]+)/variations',
    138139            '/wp/v2/global-styles/themes/(?P<stylesheet>[^\/:<>\*\?"\|]+(?:\/[^\/:<>\*\?"\|]+)?)',
Note: See TracChangeset for help on using the changeset viewer.