diff --git a/lib/compat/wordpress-6.7/rest-api.php b/lib/compat/wordpress-6.7/rest-api.php index d43894cdc27732..d62cde7aa7d769 100644 --- a/lib/compat/wordpress-6.7/rest-api.php +++ b/lib/compat/wordpress-6.7/rest-api.php @@ -141,7 +141,7 @@ function gutenberg_override_default_rest_server() { * @param string $post_type Post type key. */ function gutenberg_register_post_type_args_for_wp_global_styles( $args, $post_type ) { - if ( $post_type === 'wp_global_styles' ) { + if ( 'wp_global_styles' === $post_type ) { $args['capabilities']['read'] = 'edit_posts'; }