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
This commit is contained in:
Jb Audras 2021-12-31 15:28:25 +00:00
parent a1abc11ce6
commit 6e5510417e

View File

@ -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 ) {