Make WordPress Core


Ignore:
Timestamp:
11/08/2021 08:58:56 PM (3 years ago)
Author:
jorgefilipecosta
Message:

Add: Global Styles Rest endpoints.

This commit ports the global styles rest endpoints from the Gutenberg plugin into the core.

See #54336.
Props oandregal, aristath, timothyblynjacobs, spacedmonkey, youknowriad.

File:
1 edited

Legend:

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

    r52017 r52051  
    125125            '/wp/v2/comments',
    126126            '/wp/v2/comments/(?P<id>[\\d]+)',
     127            '/wp/v2/global-styles/(?P<id>[\/\w-]+)',
     128            '/wp/v2/global-styles/themes/(?P<stylesheet>[^.\/]+(?:\/[^.\/]+)?)',
    127129            '/wp/v2/search',
    128130            '/wp/v2/block-renderer/(?P<name>[a-z0-9-]+/[a-z0-9-]+)',
Note: See TracChangeset for help on using the changeset viewer.