Changeset 44668 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 01/21/2019 05:35:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r44643 r44668 1165 1165 $admin_url = admin_url( 'tools.php?page=' . $this->request_type ); 1166 1166 $counts = $this->get_request_counts(); 1167 $total_requests = absint( array_sum( (array) $counts ) ); 1167 1168 1168 1169 $current_link_attributes = empty( $current_status ) ? ' class="current" aria-current="page"' : ''; 1169 $views['all'] = '<a href="' . esc_url( $admin_url ) . "\" $current_link_attributes>" . esc_html__( 'All' ) . ' <span class="count">(' . absint( array_sum( (array) $counts ) ) . ')</span></a>';1170 $views['all'] = '<a href="' . esc_url( $admin_url ) . "\" $current_link_attributes>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%d)</span>', $total_requests, 'requests' ), number_format_i18n( $total_requests ) ) . '</a>'; 1170 1171 1171 1172 foreach ( $statuses as $status => $label ) { 1172 1173 $current_link_attributes = $status === $current_status ? ' class="current" aria-current="page"' : ''; 1173 $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>'; 1174 $total_status_requests = absint( $counts->$status ); 1175 $views[ $status ] = '<a href="' . esc_url( add_query_arg( 'filter-status', $status, $admin_url ) ) . "\" $current_link_attributes>" . sprintf( _nx( '%1$s <span class="count">(%2$d)</span>', '%1$s <span class="count">(%2$d)</span>', $total_status_requests, 'requests' ), esc_html( $label ), number_format_i18n( $total_status_requests ) ) . '</a>'; 1174 1176 } 1175 1177
Note: See TracChangeset
for help on using the changeset viewer.