From a362852fcfec21d618574219bf74e85ecf94bfaa Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Aug 2020 16:24:32 +0000 Subject: [PATCH] Comments: Restore the `::has_items()` call in `WP_Comments_List_Table::extra_tablenav()` for now, until unit tests are updated accordingly. Follow-up to [48722]. Fixes #40188. See #50815. git-svn-id: https://develop.svn.wordpress.org/trunk@48724 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-comments-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6dfd67d466..dffd70ca9b 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -407,7 +407,7 @@ class WP_Comments_List_Table extends WP_List_Table { $output = ob_get_clean(); - if ( ! empty( $output ) && $has_items ) { + if ( ! empty( $output ) && $this->has_items() ) { echo $output; submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); }