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 fa41a7203c..3ff2814e0a 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -319,6 +319,11 @@ class WP_Comments_List_Table extends WP_List_Table { */ protected function extra_tablenav( $which ) { global $comment_status, $comment_type; + static $has_items; + + if ( ! isset( $has_items ) ) { + $has_items = $this->has_items(); + } ?>