Make WordPress Core

Changeset 48284


Ignore:
Timestamp:
07/03/2020 04:26:57 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Hide views that have a count of 0 on privacy request tables, for consistency with other list tables.

Props pbiron, garrett-eclipse, mapk, melchoyce, estelaris.
Fixes #47495.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-requests-table.php

    r47245 r48284  
    179179            $current_link_attributes = $status === $current_status ? ' class="current" aria-current="page"' : '';
    180180            $total_status_requests   = absint( $counts->{$status} );
     181
     182            if ( ! $total_status_requests ) {
     183                continue;
     184            }
    181185
    182186            $status_label = sprintf(
Note: See TracChangeset for help on using the changeset viewer.