Skip to content

Commit

Permalink
Add: Global Styles Rest endpoints.
Browse files Browse the repository at this point in the history
This commit ports the global styles rest endpoints from the Gutenberg plugin into the core.

See #54336.
Props oandregal, aristath, timothyblynjacobs, spacedmonkey, youknowriad.
Built from https://develop.svn.wordpress.org/trunk@52051


git-svn-id: http://core.svn.wordpress.org/trunk@51643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
jorgefilipecosta committed Nov 8, 2021
1 parent cba4afb commit db5d8b5
Show file tree
Hide file tree
Showing 5 changed files with 451 additions and 1 deletion.
4 changes: 4 additions & 0 deletions wp-includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ function create_initial_rest_routes() {
$controller = new WP_REST_Block_Types_Controller();
$controller->register_routes();

// Global Styles.
$controller = new WP_REST_Global_Styles_Controller;
$controller->register_routes();

// Settings.
$controller = new WP_REST_Settings_Controller;
$controller->register_routes();
Expand Down
Loading

0 comments on commit db5d8b5

Please sign in to comment.