WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/11/2021 03:50:22 AM (2 months ago)
Author:
noisysocks
Message:

REST API: Add /wp/v2/block-navigation-areas endpoint

Copies WP_REST_Block_Navigation_Areas_Controller from the Gutenberg plugin. This
provides the /wp/v2/block-navigation-areas endpoint used by the Navigation
block.

Props antonvlasenko, TimothyBlynJacobs.
Fixes #54393.

File:
1 edited

Legend:

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

    r52079 r52133  
    172172            '/wp/v2/navigation/(?P<parent>[\d]+)/revisions',
    173173            '/wp/v2/navigation/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)',
     174            '/wp/v2/block-navigation-areas',
     175            '/wp/v2/block-navigation-areas/(?P<area>[\w-]+)',
    174176            '/wp-site-health/v1',
    175177            '/wp-site-health/v1/tests/background-updates',
Note: See TracChangeset for help on using the changeset viewer.