Skip to content
Permalink
Browse files

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
  • Loading branch information...
helen committed Aug 1, 2014
1 parent 61a0551 commit 5d102f8e0b57e281d6d2714a678048b25bb24ff8
@@ -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 {
@@ -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 {

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -127,8 +127,7 @@ public function get_columns() {
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;

0 comments on commit 5d102f8

Please sign in to comment.
You can’t perform that action at this time.