Make WordPress Core


Ignore:
Timestamp:
11/11/2021 03:50:22 AM (3 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/src/wp-includes/rest-api.php

    r52128 r52133  
    349349    // Menu Locations.
    350350    $controller = new WP_REST_Menu_Locations_Controller();
     351    $controller->register_routes();
     352
     353    // Block Navigation Areas
     354    $controller = new WP_REST_Block_Navigation_Areas_Controller();
    351355    $controller->register_routes();
    352356}
Note: See TracChangeset for help on using the changeset viewer.