Skip to content

Commit

Permalink
Now that Star Wars is owned by Disney, do we still need Yoda conditions?
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 12, 2024
1 parent d28fca9 commit 30dd915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.7/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 30dd915

Please sign in to comment.