Changeset 44668
- Timestamp:
- 01/21/2019 05:35:00 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 2 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 -
trunk/src/wp-includes/post.php
r44660 r44668 392 392 'internal' => true, 393 393 '_builtin' => true, /* internal use only. */ 394 'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ), 394 395 'exclude_from_search' => false, 395 396 ) … … 402 403 'internal' => true, 403 404 '_builtin' => true, /* internal use only. */ 405 'label_count' => _n_noop( 'Confirmed <span class="count">(%s)</span>', 'Confirmed <span class="count">(%s)</span>' ), 404 406 'exclude_from_search' => false, 405 407 ) … … 412 414 'internal' => true, 413 415 '_builtin' => true, /* internal use only. */ 416 'label_count' => _n_noop( 'Failed <span class="count">(%s)</span>', 'Failed <span class="count">(%s)</span>' ), 414 417 'exclude_from_search' => false, 415 418 ) … … 422 425 'internal' => true, 423 426 '_builtin' => true, /* internal use only. */ 427 'label_count' => _n_noop( 'Completed <span class="count">(%s)</span>', 'Completed <span class="count">(%s)</span>' ), 424 428 'exclude_from_search' => false, 425 429 )
Note: See TracChangeset
for help on using the changeset viewer.