From 6e5510417eeb70e586142b1428009f0e8608c509 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Fri, 31 Dec 2021 15:28:25 +0000 Subject: [PATCH] Users: Use the "Posts" post type general name to contextualize the string used in Users posts count column label. Since some locales may differentiate "Posts" generic post type name (works for both posts, pages, and custom post types) and "Posts" when speaking about blogposts, this change aims to contextualize the use of the "Posts" string in the "Users" admin screen. This change reuses the string used for the "Posts" post type registration, to avoid introducing any new string to translate. Props audrasjb, jdy68, SergeyBiryukov. Fixes #54712. git-svn-id: https://develop.svn.wordpress.org/trunk@52426 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-users-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-users-list-table.php b/src/wp-admin/includes/class-wp-users-list-table.php index ead859dc19..45eb16aa28 100644 --- a/src/wp-admin/includes/class-wp-users-list-table.php +++ b/src/wp-admin/includes/class-wp-users-list-table.php @@ -362,7 +362,7 @@ class WP_Users_List_Table extends WP_List_Table { 'name' => __( 'Name' ), 'email' => __( 'Email' ), 'role' => __( 'Role' ), - 'posts' => __( 'Posts' ), + 'posts' => _x( 'Posts', 'post type general name' ), ); if ( $this->is_site_users ) {