Make WordPress Core

Ticket #17209: 17209b.diff

File 17209b.diff, 802 bytes (added by philipjohn, 12 years ago)
  • wp-admin/includes/class-wp-terms-list-table.php

    diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php
    index bf31468..341b1f1 100644
    a b class WP_Terms_List_Table extends WP_List_Table {  
    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( '#', 'Number/count of posts' ) : $post_type_object->labels->name;
     133                        } else {
     134                                $columns['posts'] = __( 'Posts' );
     135                        }
    132136                }
    133137
    134138                return $columns;