Use the word "Count" instead of the post type label in taxonomy list tables to prevent layout issues. It is also more accurate, as it represents a count of all post types, not just one.
props philipjohn, GaVrA, seanchayes. fixes #17209. Built from https://develop.svn.wordpress.org/trunk@29343 git-svn-id: http://core.svn.wordpress.org/trunk@29121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -127,8 +127,7 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
if ( 'link_category' == $this->screen->taxonomy ) {
|
||||
$columns['links'] = __( 'Links' );
|
||||
} else {
|
||||
$post_type_object = get_post_type_object( $this->screen->post_type );
|
||||
$columns['posts'] = $post_type_object ? $post_type_object->labels->name : __( 'Posts' );
|
||||
$columns['posts'] = _x( 'Count', 'Number/count of items' );
|
||||
}
|
||||
|
||||
return $columns;
|
||||
|
||||
Reference in New Issue
Block a user