Skip to content

Commit 0f59639

Browse files
fabiankaegyMamaduka
andcommitted
fix simplify check
Co-authored-by: Mamaduka <[email protected]>
1 parent 0aa95a8 commit 0f59639

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/wp-includes/post.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,9 +2297,7 @@ function add_post_type_support( $post_type, $feature, ...$args ) {
22972297
foreach ( $features as $feature ) {
22982298
if ( $args ) {
22992299
// Check if feature already exists with args and if both are associative arrays that should be merged.
2300-
if ( isset( $_wp_post_type_features[ $post_type ][ $feature ] )
2301-
&& is_array( $_wp_post_type_features[ $post_type ][ $feature ] )
2302-
&& isset( $_wp_post_type_features[ $post_type ][ $feature ][0] )
2300+
if ( isset( $_wp_post_type_features[ $post_type ][ $feature ][0] )
23032301
&& is_array( $_wp_post_type_features[ $post_type ][ $feature ][0] )
23042302
&& isset( $args[0] )
23052303
&& is_array( $args[0] ) ) {

0 commit comments

Comments
 (0)