Skip to content

Commit 357d8ec

Browse files
Coding Standards: Remove extra check in WP_Comment_Query::get_comment_ids().
The preceding `foreach` loop ensures that `$status_clauses` is a non-empty array. Follow-up to [30084]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60291 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f83e663 commit 357d8ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/wp-includes/class-wp-comment-query.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,7 @@ protected function get_comment_ids() {
579579
}
580580
}
581581

582-
if ( ! empty( $status_clauses ) ) {
583-
$approved_clauses[] = '( ' . implode( ' OR ', $status_clauses ) . ' )';
584-
}
582+
$approved_clauses[] = '( ' . implode( ' OR ', $status_clauses ) . ' )';
585583
}
586584

587585
// User IDs or emails whose unapproved comments are included, regardless of $status.

0 commit comments

Comments
 (0)