[wp-trac] [WordPress Trac] #47495: WP_Privacy_Request_Table should not show views that have a count of 0.

WordPress Trac noreply at wordpress.org
Thu Jun 6 17:16:37 UTC 2019


#47495: WP_Privacy_Request_Table should not show views that have a count of 0.
-------------------------+-----------------------------
 Reporter:  pbiron       |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Privacy      |    Version:
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 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_Tabl`e 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47495>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list