From 3f154010f3a045c058095e4b910cba952c106eb4 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sun, 24 Jun 2007 05:05:22 +0000 Subject: [PATCH] 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 --- wp-admin/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 6d0352751..b79f6396b 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -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'] = '
' . __('Comments') . '
'; $posts_columns['author'] = __('Author');