Make WordPress Core


Ignore:
Timestamp:
11/11/2021 03:50:22 AM (3 years 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-settings.php

    r52079 r52133  
    245245require ABSPATH . WPINC . '/class-wp-widget.php';
    246246require ABSPATH . WPINC . '/class-wp-widget-factory.php';
     247require ABSPATH . WPINC . '/nav-menu-template.php';
    247248require ABSPATH . WPINC . '/nav-menu.php';
    248 require ABSPATH . WPINC . '/nav-menu-template.php';
     249require ABSPATH . WPINC . '/navigation-areas.php';
    249250require ABSPATH . WPINC . '/admin-bar.php';
    250251require ABSPATH . WPINC . '/class-wp-application-passwords.php';
     
    276277require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-plugins-controller.php';
    277278require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-directory-controller.php';
     279require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-navigation-areas-controller.php';
    278280require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php';
    279281require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-application-passwords-controller.php';
Note: See TracChangeset for help on using the changeset viewer.