Skip to content

Commit

Permalink
Fix fatal error in in_array call in post_type_default_rendering_mode (#…
Browse files Browse the repository at this point in the history
…67225)

Co-authored-by: jsnajdr <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2024
1 parent 81d2ee8 commit 2919c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.8/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function gutenberg_post_type_default_rendering_mode( $args, $post_type ) {
if (
wp_is_block_theme() &&
( isset( $args['show_in_rest'] ) && $args['show_in_rest'] ) &&
( isset( $args['supports'] ) && in_array( 'editor', $args['supports'], true ) )
( ! empty( $args['supports'] ) && in_array( 'editor', $args['supports'], true ) )
) {
// Validate the supplied rendering mode.
if (
Expand Down

0 comments on commit 2919c5c

Please sign in to comment.