Make WordPress Core

Ticket #17209: 17209c.diff

File 17209c.diff, 1.3 KB (added by seanchayes, 12 years ago)
  • src/wp-admin/css/list-tables.css

     
    262262.fixed .column-format {
    263263        width: 10%;
    264264}
    265 
     265.fixed .column-posts {
     266    width: 74px;
     267}
    266268.fixed .column-comment .comment-author {
    267269        display: none;
    268270}
     
    14161418
    14171419        /* Taxonomies */
    14181420        .tags .column-posts {
    1419                 width: 50px;
     1421                width: 74px;
    14201422        }
    14211423
    14221424        .tags .column-slug {
  • src/wp-admin/includes/class-wp-terms-list-table.php

     
    128128                        $columns['links'] = __( 'Links' );
    129129                } else {
    130130                        $post_type_object = get_post_type_object( $this->screen->post_type );
    131                         $columns['posts'] = $post_type_object ? $post_type_object->labels->name : __( 'Posts' );
     131                        if ( $post_type_object ) {
     132                                $columns['posts'] = ( strlen( $post_type_object->labels->name ) > 5 ) ? _x( 'Count', 'Number/count of posts' ) : $post_type_object->labels->name;
     133                        } else {
     134                                $columns['posts'] = __( 'Posts' );
     135                        }
    132136                }
    133137
    134138                return $columns;