Skip to content

Commit 1c8185e

Browse files
Coding Standards: Remove redundant check in get_terms().
The same conditional already calls `isset()`, which explicitly checks if the value is different from `null`. Follow-up to [36614], [37599]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60445 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8938a32 commit 1c8185e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ function get_terms( $args = array(), $deprecated = '' ) {
13371337
$args['taxonomy'] = $taxonomies;
13381338
} else {
13391339
$args = wp_parse_args( $args, $defaults );
1340-
if ( isset( $args['taxonomy'] ) && null !== $args['taxonomy'] ) {
1340+
if ( isset( $args['taxonomy'] ) ) {
13411341
$args['taxonomy'] = (array) $args['taxonomy'];
13421342
}
13431343
}

0 commit comments

Comments
 (0)