mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50995 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -26,6 +26,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||
'classname' => 'widget_recent_comments',
|
||||
'description' => __( 'Your site’s most recent comments.' ),
|
||||
'customize_selective_refresh' => true,
|
||||
'show_instance_in_rest' => true,
|
||||
);
|
||||
parent::__construct( 'recent-comments', __( 'Recent Comments' ), $widget_ops );
|
||||
$this->alt_option_name = 'widget_recent_comments';
|
||||
|
||||
Reference in New Issue
Block a user