mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
REST API: add revisions endpoint for global styles.
Adds an endpoint that returns revisions to the global styles custom post. Props ramonopoly, peterwilsoncc, spacedmonkey, mukesh27, timothyblynjacobs. Fixes #58524. git-svn-id: https://develop.svn.wordpress.org/trunk@56082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -317,6 +317,10 @@ function create_initial_rest_routes() {
|
||||
$controller = new WP_REST_Block_Types_Controller();
|
||||
$controller->register_routes();
|
||||
|
||||
// Global Styles revisions.
|
||||
$controller = new WP_REST_Global_Styles_Revisions_Controller();
|
||||
$controller->register_routes();
|
||||
|
||||
// Global Styles.
|
||||
$controller = new WP_REST_Global_Styles_Controller();
|
||||
$controller->register_routes();
|
||||
|
||||
Reference in New Issue
Block a user