Make WordPress Core


Ignore:
Timestamp:
06/28/2023 03:33:23 AM (17 months ago)
Author:
isabel_brison
Message:

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.

File:
1 edited

Legend:

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

    r56052 r56082  
    316316    // Block Types.
    317317    $controller = new WP_REST_Block_Types_Controller();
     318    $controller->register_routes();
     319
     320    // Global Styles revisions.
     321    $controller = new WP_REST_Global_Styles_Revisions_Controller();
    318322    $controller->register_routes();
    319323
Note: See TracChangeset for help on using the changeset viewer.