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:
Helen Hou-Sandí 2014-08-01 18:32:15 +00:00
parent 61a0551529
commit 5d102f8e0b
5 changed files with 13 additions and 6 deletions

View File

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

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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;