Skip to content

Commit 4c05d3d

Browse files
committed
chore: remove unnecessary empty( $object_terms ) check in is_object_in_term
1 parent ae0b4da commit 4c05d3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4917,7 +4917,7 @@ function is_object_in_term( $object_id, $taxonomy, $terms = null ) {
49174917
return false;
49184918
}
49194919
if ( empty( $terms ) ) {
4920-
return ( ! empty( $object_terms ) );
4920+
return true;
49214921
}
49224922

49234923
$terms = (array) $terms;

0 commit comments

Comments
 (0)