Make WordPress Core

Ticket #17209: 17209a.diff

File 17209a.diff, 735 bytes (added by philipjohn, 12 years ago)
  • 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 ) ? __('#') : $post_type_object->labels->name;
     133                        } else {
     134                                $columns['posts'] = __( 'Posts' );
     135                        }
    132136                }
    133137
    134138                return $columns;