Make WordPress Core


Ignore:
Timestamp:
04/05/2022 09:50:13 AM (4 years ago)
Author:
youknowriad
Message:

Block Editor: Backport the Global Styles Variations endpoint.

This include the /global-styles/themes/{theme}/variations rest endpoint into core.
The endpoint will be used by the site editor to display alternative theme styles to the user.

Props gziolo, oandregal.
See #55505.

File:
1 edited

Legend:

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

    r52399 r53072  
    137137            '/wp/v2/comments/(?P<id>[\\d]+)',
    138138            '/wp/v2/global-styles/(?P<id>[\/\w-]+)',
     139            '/wp/v2/global-styles/themes/(?P<stylesheet>[\/\s%\w\.\(\)\[\]\@_\-]+)/variations',
    139140            '/wp/v2/global-styles/themes/(?P<stylesheet>[^\/:<>\*\?"\|]+(?:\/[^\/:<>\*\?"\|]+)?)',
    140141            '/wp/v2/search',
Note: See TracChangeset for help on using the changeset viewer.