Skip to content

Commit

Permalink
WIP sidebars merge
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyBJacobs committed Oct 20, 2020
1 parent 2a8dae4 commit bf4845d
Show file tree
Hide file tree
Showing 8 changed files with 3,823 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/wp-includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,21 @@ function create_initial_rest_routes() {
$controller = new WP_REST_Block_Directory_Controller();
$controller->register_routes();

//Sidebars
$sidebars = new WP_REST_Sidebars_Controller();
$sidebars->register_routes();

// Widgets
$widgets = new WP_REST_Widgets_Controller();
$widgets->register_routes();

// Widget types
$widget_types = new WP_REST_Widget_Types_Controller();
$widget_types->register_routes();

// Site Health
$site_health = WP_Site_Health::get_instance();
$controller = new WP_REST_Site_Health_Controller( $site_health );
$controller = new WP_REST_Site_Health_Controller( $site_health );
$controller->register_routes();
}

Expand Down

0 comments on commit bf4845d

Please sign in to comment.