mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
Privacy: fix styling of counts on the list tables for user requests.
Props allendav. Fixes #43846. git-svn-id: https://develop.svn.wordpress.org/trunk@43000 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
84251cc161
commit
6bee78edcf
@ -1058,11 +1058,11 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
|
||||
$counts = wp_count_posts( $this->post_type );
|
||||
|
||||
$current_link_attributes = empty( $current_status ) ? ' class="current" aria-current="page"' : '';
|
||||
$views['all'] = '<a href="' . esc_url( $admin_url ) . "\" $current_link_attributes>" . esc_html__( 'All' ) . ' (' . absint( array_sum( (array) $counts ) ) . ')</a>';
|
||||
$views['all'] = '<a href="' . esc_url( $admin_url ) . "\" $current_link_attributes>" . esc_html__( 'All' ) . ' <span class="count">(' . absint( array_sum( (array) $counts ) ) . ')</span></a>';
|
||||
|
||||
foreach ( $statuses as $status => $label ) {
|
||||
$current_link_attributes = $status === $current_status ? ' class="current" aria-current="page"' : '';
|
||||
$views[ $status ] = '<a href="' . esc_url( add_query_arg( 'filter-status', $status, $admin_url ) ) . "\" $current_link_attributes>" . esc_html( $label ) . ' (' . absint( $counts->$status ) . ')</a>';
|
||||
$views[ $status ] = '<a href="' . esc_url( add_query_arg( 'filter-status', $status, $admin_url ) ) . "\" $current_link_attributes>" . esc_html( $label ) . ' <span class="count">(' . absint( $counts->$status ) . ')</span></a>';
|
||||
}
|
||||
|
||||
return $views;
|
||||
|
Loading…
x
Reference in New Issue
Block a user