Make WordPress Core

Opened 10 months ago

Last modified 3 weeks ago

#47495 assigned enhancement

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

Reported by: pbiron Owned by: pbiron
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Privacy Keywords: has-patch
Focuses: Cc:


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

Download all attachments as: .zip

Change History (3)

10 months ago

This ticket was mentioned in Slack in #core-privacy by pbiron. View the logs.

3 weeks ago

#2 @pbiron
3 weeks ago

  • Milestone changed from Awaiting Review to 5.5
  • Owner set to pbiron
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.