Ticket #43846: 43846.diff
File 43846.diff, 1.4 KB (added by , 6 years ago) |
---|
-
src/wp-admin/includes/user.php
1058 1058 $counts = wp_count_posts( $this->post_type ); 1059 1059 1060 1060 $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>'; 1062 1062 1063 1063 foreach ( $statuses as $status => $label ) { 1064 1064 $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>'; 1066 1066 } 1067 1067 1068 1068 return $views;