Make WordPress Core

Ticket #20345: 20345.patch

File 20345.patch, 1.3 KB (added by SergeyBiryukov, 13 years ago)
  • wp-admin/includes/class-wp-media-list-table.php

     
    130130                $posts_columns['icon'] = '';
    131131                /* translators: column name */
    132132                $posts_columns['title'] = _x( 'File', 'column name' );
    133                 $posts_columns['author'] = __( 'Author' );
    134                 //$posts_columns['tags'] = _x( 'Tags', 'column name' );
     133                if ( is_multi_author() )
     134                        $posts_columns['author'] = __( 'Author' );
    135135                /* translators: column name */
    136136                if ( !$this->detached ) {
    137137                        $posts_columns['parent'] = _x( 'Attached to', 'column name' );
  • wp-admin/includes/class-wp-posts-list-table.php

     
    266266                /* translators: manage posts column name */
    267267                $posts_columns['title'] = _x( 'Title', 'column name' );
    268268
    269                 if ( post_type_supports( $post_type, 'author' ) )
     269                if ( post_type_supports( $post_type, 'author' ) && is_multi_author() )
    270270                        $posts_columns['author'] = __( 'Author' );
    271271
    272272                if ( empty( $post_type ) || is_object_in_taxonomy( $post_type, 'category' ) )