From 30dd91523071b0ddb350907af60888793f405fac Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 9 Sep 2024 11:01:09 +1000 Subject: [PATCH] Now that Star Wars is owned by Disney, do we still need Yoda conditions? --- lib/compat/wordpress-6.7/rest-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }