Make WordPress Core


Ignore:
Timestamp:
05/25/2021 08:26:21 AM (3 years ago)
Author:
noisysocks
Message:

REST API: Add widget endpoints

Adds the sidebars, widgets and widget-types REST API endpoints from the
Gutenberg plugin.

Fixes #41683.
Props TimothyBlynJacobs, spacedmonkey, zieladam, jorgefilipecosta, youknowriad, kevin940726.

File:
1 edited

Legend:

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

    r50994 r50995  
    135135            '/wp/v2/plugins/(?P<plugin>[^.\/]+(?:\/[^.\/]+)?)',
    136136            '/wp/v2/block-directory/search',
     137            '/wp/v2/sidebars',
     138            '/wp/v2/sidebars/(?P<id>[\w-]+)',
     139            '/wp/v2/widget-types',
     140            '/wp/v2/widget-types/(?P<id>[a-zA-Z0-9_-]+)',
     141            '/wp/v2/widget-types/(?P<id>[a-zA-Z0-9_-]+)/encode',
     142            '/wp/v2/widgets',
     143            '/wp/v2/widgets/(?P<id>[\w\-]+)',
    137144            '/wp-site-health/v1',
    138145            '/wp-site-health/v1/tests/background-updates',
Note: See TracChangeset for help on using the changeset viewer.