Make WordPress Core


Ignore:
Timestamp:
09/14/2008 06:51:42 AM (18 years ago)
Author:
ryan
Message:

Column hiding for links. see #7725

File:
1 edited

Legend:

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

    r8868 r8888  
    405405
    406406        return $posts_columns;
     407}
     408
     409function wp_manage_links_columns() {
     410        $link_columns = array(
     411                'name'       => __('Name'),
     412                'url'       => __('URL'),
     413                'categories' => __('Categories'),
     414                'rel'      => __('rel'),
     415                'visible'   => __('Visible'),
     416        );
     417
     418        return apply_filters('manage_link_columns', $link_columns);
    407419}
    408420
    … …  
    19711983        elseif ( 'page' == $page )
    19721984                $columns = wp_manage_pages_columns();
     1985        elseif ( 'link' == $page )
     1986                $columns = wp_manage_links_columns();
    19731987        elseif ( 'media' == $page )
    19741988                $columns = wp_manage_media_columns();
    … …  
    19791993        foreach ( $columns as $column => $title ) {
    19801994                // Can't hide these
    1981                 if ( 'cb' == $column || 'title' == $column )
     1995                if ( 'cb' == $column || 'title' == $column || 'name' == $column )
    19821996                        continue;
    19831997                if ( 'comments' == $column )
Note: See TracChangeset for help on using the changeset viewer.