Skip to content

Commit 5ca3347

Browse files
Add: Global Styles Rest endpoints.
This commit ports the global styles rest endpoints from the Gutenberg plugin into the core. See #54336. Props oandregal, aristath, timothyblynjacobs, spacedmonkey, youknowriad. git-svn-id: https://develop.svn.wordpress.org/trunk@52051 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 247159d commit 5ca3347

7 files changed

Lines changed: 679 additions & 0 deletions

File tree

src/wp-includes/rest-api.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ function create_initial_rest_routes() {
301301
$controller = new WP_REST_Block_Types_Controller();
302302
$controller->register_routes();
303303

304+
// Global Styles.
305+
$controller = new WP_REST_Global_Styles_Controller;
306+
$controller->register_routes();
307+
304308
// Settings.
305309
$controller = new WP_REST_Settings_Controller;
306310
$controller->register_routes();

0 commit comments

Comments
 (0)