mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
ad9271f86f
commit
3f154010f3
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user