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:
parent
f3de8f4aab
commit
81cb647692
|
@ -39,7 +39,7 @@ if ( !in_array($_GET['post_status'], array('pending', 'draft')) )
|
||||||
$posts_columns['date'] = __('When');
|
$posts_columns['date'] = __('When');
|
||||||
$posts_columns['title'] = __('Title');
|
$posts_columns['title'] = __('Title');
|
||||||
$posts_columns['categories'] = __('Categories');
|
$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['comments'] = '<div style="text-align: center">' . __('Comments') . '</div>';
|
||||||
$posts_columns['author'] = __('Author');
|
$posts_columns['author'] = __('Author');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue