Make WordPress Core

Changeset 29343


Ignore:
Timestamp:
08/01/2014 06:31:52 PM (7 years ago)
Author:
helen
Message:

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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r29225 r29343  
    262262.fixed .column-format {
    263263    width: 10%;
     264}
     265
     266.fixed .column-posts {
     267    width: 74px;
    264268}
    265269
     
    15581562    /* Taxonomies */
    15591563    .tags .column-posts {
    1560         width: 50px;
     1564        width: 74px;
    15611565    }
    15621566
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r29206 r29343  
    128128            $columns['links'] = __( 'Links' );
    129129        } else {
    130             $post_type_object = get_post_type_object( $this->screen->post_type );
    131             $columns['posts'] = $post_type_object ? $post_type_object->labels->name : __( 'Posts' );
     130            $columns['posts'] = _x( 'Count', 'Number/count of items' );
    132131        }
    133132
Note: See TracChangeset for help on using the changeset viewer.