diff --git a/lib/rest-api.php b/lib/rest-api.php index 7fa227a52bf3b1..d0a6fffbcf6ee9 100644 --- a/lib/rest-api.php +++ b/lib/rest-api.php @@ -21,7 +21,7 @@ */ function gutenberg_override_global_styles_endpoint( array $args, string $post_type ): array { if ( 'wp_global_styles' === $post_type ) { - $args['rest_controller_class'] = WP_REST_Global_Styles_Controller_Gutenberg::class; + $args['rest_controller_class'] = 'WP_REST_Global_Styles_Controller_Gutenberg'; } return $args;