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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-06-24 05:05:22 +00:00
parent ad9271f86f
commit 3f154010f3
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');