Make WordPress Core


Ignore:
Timestamp:
11/08/2021 08:58:56 PM (3 years ago)
Author:
jorgefilipecosta
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r51973 r52051  
    300300    // Block Types.
    301301    $controller = new WP_REST_Block_Types_Controller();
     302    $controller->register_routes();
     303
     304    // Global Styles.
     305    $controller = new WP_REST_Global_Styles_Controller;
    302306    $controller->register_routes();
    303307
Note: See TracChangeset for help on using the changeset viewer.