Skip to content

Commit d2b23a7

Browse files
Update class-wp-comments-list-table.php
Co-authored-by: Jonathan Desrosiers <[email protected]>
1 parent eb019e4 commit d2b23a7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/wp-admin/includes/class-wp-comments-list-table.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ public function prepare_items() {
9999
$comment_status = 'all';
100100
}
101101

102-
$comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';
103-
$comment_type = 'note' === $comment_type ? '' : $comment_type;
102+
$comment_type = '';
103+
104+
if ( ! empty( $_REQUEST['comment_type'] ) && 'note' !== $_REQUEST['comment_type'] ) {
105+
$comment_type = $_REQUEST['comment_type'];
106+
}
104107

105108
$search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
106109

0 commit comments

Comments
 (0)