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/src/wp-includes/widgets/class-wp-nav-menu-widget.php

    r50994 r50995  
    2626            'description'                 => __( 'Add a navigation menu to your sidebar.' ),
    2727            'customize_selective_refresh' => true,
     28            'show_instance_in_rest'       => true,
    2829        );
    2930        parent::__construct( 'nav_menu', __( 'Navigation Menu' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.