Make WordPress Core


Ignore:
Timestamp:
02/13/2024 03:10:37 PM (3 months ago)
Author:
davidbaumwald
Message:

REST API: Revert the refactor of global styles endpoints in REST API in [57624].

[57624] introduced some E2E test failures which are the result of an incompatibility with the Gutenberg plugin.

Props jorbin, spacedmonkey, swissspidy, hellofromTonya, youknowriad, costdev.
See #60131.

File:
1 edited

Legend:

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

    r57624 r57628  
    322322    // Block Types.
    323323    $controller = new WP_REST_Block_Types_Controller();
     324    $controller->register_routes();
     325
     326    // Global Styles revisions.
     327    $controller = new WP_REST_Global_Styles_Revisions_Controller();
     328    $controller->register_routes();
     329
     330    // Global Styles.
     331    $controller = new WP_REST_Global_Styles_Controller();
    324332    $controller->register_routes();
    325333
Note: See TracChangeset for help on using the changeset viewer.