diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php
index 62a9a52..fa41a72 100644
a
|
b
|
class WP_Comments_List_Table extends WP_List_Table { |
322 | 322 | ?> |
323 | 323 | <div class="alignleft actions"> |
324 | 324 | <?php |
325 | | if ( 'top' === $which && $this->has_comments() ) { |
| 325 | if ( 'top' === $which ) { |
326 | 326 | ?> |
327 | 327 | <label class="screen-reader-text" for="filter-by-comment-type"><?php _e( 'Filter by comment type' ); ?></label> |
328 | 328 | <select id="filter-by-comment-type" name="comment_type"> |
… |
… |
class WP_Comments_List_Table extends WP_List_Table { |
790 | 790 | */ |
791 | 791 | do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); |
792 | 792 | } |
793 | | |
794 | | /** |
795 | | * Tells if there is minimum one comment not in trash |
796 | | */ |
797 | | protected function has_comments() { |
798 | | $comments = get_comments( array( |
799 | | 'number' => 1, |
800 | | ) ); |
801 | | if( $comments ) { |
802 | | return true; |
803 | | } else { |
804 | | return false; |
805 | | } |
806 | | } |
807 | 793 | } |