Skip to content

Commit

Permalink
Try string value
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Sep 12, 2024
1 parent 7864ef9 commit 78a3e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78a3e82

Please sign in to comment.