Make WordPress Core


Ignore:
Timestamp:
09/15/2008 05:53:30 PM (18 years ago)
Author:
ryan
Message:

Column hiding for media library. see #7725

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r8889 r8894  
    372372        $posts_columns['date'] = _c('Date Added|media column header');
    373373        $posts_columns['parent'] = _c('Appears with|media column header');
    374         $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
     374        //$posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
     375        $posts_columns['comments'] = __('Comments');
    375376//      $posts_columns['actions'] = _c('Actions|media column header');
    376377        $posts_columns = apply_filters('manage_media_columns', $posts_columns);
    … …  
    19931994        foreach ( $columns as $column => $title ) {
    19941995                // Can't hide these
    1995                 if ( 'cb' == $column || 'title' == $column || 'name' == $column )
     1996                if ( 'cb' == $column || 'title' == $column || 'name' == $column || 'media' == $column )
    19961997                        continue;
     1998                if ( empty($title) )
     1999                        continue;
     2000
    19972001                if ( 'comments' == $column )
    19982002                        $title = __('Comments');
Note: See TracChangeset for help on using the changeset viewer.