Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Now that Star Wars is owned by Disney, do we still need Yoda conditions?
  • Loading branch information
ramonjd committed Sep 18, 2024
commit 3c8653076111ce32337effeaf6f4e2410d277227
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