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

git-svn-id: https://develop.svn.wordpress.org/trunk@5748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-06-24 05:05:22 +00:00
parent f3de8f4aab
commit 81cb647692
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ if ( !in_array($_GET['post_status'], array('pending', 'draft')) )
$posts_columns['date'] = __('When');
$posts_columns['title'] = __('Title');
$posts_columns['categories'] = __('Categories');
if ( 'publish' == $_GET['post_status'] )
if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
$posts_columns['comments'] = '<div style="text-align: center">' . __('Comments') . '</div>';
$posts_columns['author'] = __('Author');