Make WordPress Core


Ignore:
Timestamp:
05/25/2021 07:51:14 AM (5 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-meta.php

    r48410 r50993  
    2929                        'description'                 => __( 'Login, RSS, & WordPress.org links.' ),
    3030                        'customize_selective_refresh' => true,
     31                        'show_instance_in_rest'       => true,
    3132                );
    3233                parent::__construct( 'meta', __( 'Meta' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.