WordPress.org

Make WordPress Core

Changeset 43000


Ignore:
Timestamp:
04/24/2018 09:34:59 PM (2 years ago)
Author:
azaozz
Message:

Privacy: fix styling of counts on the list tables for user requests.

Props allendav.
Fixes #43846.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r42986 r43000  
    10591059
    10601060        $current_link_attributes = empty( $current_status ) ? ' class="current" aria-current="page"' : '';
    1061         $views['all']            = '<a href="' . esc_url( $admin_url ) . "\" $current_link_attributes>" . esc_html__( 'All' ) . ' (' . absint( array_sum( (array) $counts ) ) . ')</a>';
     1061        $views['all']            = '<a href="' . esc_url( $admin_url ) . "\" $current_link_attributes>" . esc_html__( 'All' ) . ' <span class="count">(' . absint( array_sum( (array) $counts ) ) . ')</span></a>';
    10621062
    10631063        foreach ( $statuses as $status => $label ) {
    10641064            $current_link_attributes = $status === $current_status ? ' class="current" aria-current="page"' : '';
    1065             $views[ $status ]        = '<a href="' . esc_url( add_query_arg( 'filter-status', $status, $admin_url ) ) . "\" $current_link_attributes>" . esc_html( $label ) . ' (' . absint( $counts->$status ) . ')</a>';
     1065            $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>';
    10661066        }
    10671067
Note: See TracChangeset for help on using the changeset viewer.