Make WordPress Core

Opened 9 months ago

#47495 new enhancement

WP_Privacy_Request_Table should not show views that have a count of 0.

Reported by: pbiron Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Privacy Keywords: has-patch
Focuses: Cc:
PR Number:


Other core list tables that have a get_views() method do not output a view if the count for that view is 0, e.g., WP_Posts_List_Table doesn't output "Pending (0)" if there are no posts with $post_status === 'pending').

However, WP_Privacy_Requests_Table does output "Pending (0)" if there are no pending requests.

For consistency's sake, I think WP_Privacy_Requests_Table should skip views with count of 0.

Attachments (1)

47495.diff (1.1 KB) - added by pbiron 9 months ago.

Download all attachments as: .zip

Change History (1)

9 months ago

Note: See TracTickets for help on using tickets.