Make WordPress Core

Changeset 5748


Ignore:
Timestamp:
06/24/2007 05:05:22 AM (18 years ago)
Author:
markjaquith
Message:

Only hide comments column for pending, future, and draft posts. see #4446

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r5707 r5748  
    4040$posts_columns['title'] = __('Title');
    4141$posts_columns['categories'] = __('Categories');
    42 if ( 'publish' == $_GET['post_status'] )
     42if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
    4343    $posts_columns['comments'] = '<div style="text-align: center">' . __('Comments') . '</div>';
    4444$posts_columns['author'] = __('Author');
Note: See TracChangeset for help on using the changeset viewer.