﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
66260	Comments: Hide zero-count status filters on the Comments list table	abditsori		"The Posts list table (`WP_Posts_List_Table::get_views()`) hides any status
filter link — other than ""All"" — whose post count is zero:

{{{
if ( ! in_array( $status_name, $avail_post_stati, true ) || empty( $num_posts->$status_name ) ) {
	continue;
}
}}}

`WP_Comments_List_Table::get_views()` has no equivalent check. As a result,
""Pending"", ""Approved"", ""Spam"", ""Trash"", and ""Mine"" are always rendered as
filter links above the Comments list table, even when their count is `(0)`.

On a typical site with few or no pending/spam/trashed comments, this clutters
the screen with filter links that lead to an empty list, rather than only
showing filters that are actually useful.

Steps to reproduce:

1. Go to a site where every comment is approved (no pending, spam, or
   trashed comments).
2. Go to Comments in wp-admin.
3. Observe the filter row above the list: ""All | Mine | Pending (0) |
   Approved (12) | Spam (0) | Trash (0)"".

Expected behavior: filters with a zero count, other than ""All"", should not
be shown — consistent with how the Posts list table already behaves for
post statuses."	enhancement	new	normal	Awaiting Review	Comments		normal		has-patch has-unit-tests		
