diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php
index e478eb0fe9..27c3fa2a52 100644
--- a/wp-admin/includes/user.php
+++ b/wp-admin/includes/user.php
@@ -1164,13 +1164,15 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
$views = array();
$admin_url = admin_url( 'tools.php?page=' . $this->request_type );
$counts = $this->get_request_counts();
+ $total_requests = absint( array_sum( (array) $counts ) );
$current_link_attributes = empty( $current_status ) ? ' class="current" aria-current="page"' : '';
- $views['all'] = '" . esc_html__( 'All' ) . ' (' . absint( array_sum( (array) $counts ) ) . ')';
+ $views['all'] = '" . sprintf( _nx( 'All (%s)', 'All (%d)', $total_requests, 'requests' ), number_format_i18n( $total_requests ) ) . '';
foreach ( $statuses as $status => $label ) {
$current_link_attributes = $status === $current_status ? ' class="current" aria-current="page"' : '';
- $views[ $status ] = '" . esc_html( $label ) . ' (' . absint( $counts->$status ) . ')';
+ $total_status_requests = absint( $counts->$status );
+ $views[ $status ] = '" . sprintf( _nx( '%1$s (%2$d)', '%1$s (%2$d)', $total_status_requests, 'requests' ), esc_html( $label ), number_format_i18n( $total_status_requests ) ) . '';
}
return $views;
diff --git a/wp-includes/post.php b/wp-includes/post.php
index 00a05babc5..043e66288b 100644
--- a/wp-includes/post.php
+++ b/wp-includes/post.php
@@ -391,6 +391,7 @@ function create_initial_post_types() {
'label' => _x( 'Pending', 'request status' ),
'internal' => true,
'_builtin' => true, /* internal use only. */
+ 'label_count' => _n_noop( 'Pending (%s)', 'Pending (%s)' ),
'exclude_from_search' => false,
)
);
@@ -401,6 +402,7 @@ function create_initial_post_types() {
'label' => _x( 'Confirmed', 'request status' ),
'internal' => true,
'_builtin' => true, /* internal use only. */
+ 'label_count' => _n_noop( 'Confirmed (%s)', 'Confirmed (%s)' ),
'exclude_from_search' => false,
)
);
@@ -411,6 +413,7 @@ function create_initial_post_types() {
'label' => _x( 'Failed', 'request status' ),
'internal' => true,
'_builtin' => true, /* internal use only. */
+ 'label_count' => _n_noop( 'Failed (%s)', 'Failed (%s)' ),
'exclude_from_search' => false,
)
);
@@ -421,6 +424,7 @@ function create_initial_post_types() {
'label' => _x( 'Completed', 'request status' ),
'internal' => true,
'_builtin' => true, /* internal use only. */
+ 'label_count' => _n_noop( 'Completed (%s)', 'Completed (%s)' ),
'exclude_from_search' => false,
)
);
diff --git a/wp-includes/version.php b/wp-includes/version.php
index c98802c0ec..20a81206ef 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.1-beta1-44667';
+$wp_version = '5.1-beta1-44668';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.