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. git-svn-id: https://develop.svn.wordpress.org/trunk@29343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0ee7c9c678
commit
8b45f96cba
|
@ -263,6 +263,10 @@ table.fixed {
|
|||
width: 10%;
|
||||
}
|
||||
|
||||
.fixed .column-posts {
|
||||
width: 74px;
|
||||
}
|
||||
|
||||
.fixed .column-comment .comment-author {
|
||||
display: none;
|
||||
}
|
||||
|
@ -1557,7 +1561,7 @@ div.action-links,
|
|||
|
||||
/* Taxonomies */
|
||||
.tags .column-posts {
|
||||
width: 50px;
|
||||
width: 74px;
|
||||
}
|
||||
|
||||
.tags .column-slug {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue