WordPress.org

Make WordPress Core

Opened 4 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:

Description

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 4 months ago.

Download all attachments as: .zip

Change History (1)

@pbiron
4 months ago

Note: See TracTickets for help on using tickets.