Improve QE data for Draft, Pending and Scheduled posts screens, see #10478

git-svn-id: http://svn.automattic.com/wordpress/trunk@11743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2009-07-25 12:21:55 +00:00
parent bdbaca9056
commit f48bea5721
5 changed files with 8 additions and 23 deletions

View File

@@ -753,13 +753,7 @@ function wp_manage_posts_columns() {
$posts_columns['author'] = __('Author');
$posts_columns['categories'] = __('Categories');
$posts_columns['tags'] = __('Tags');
$post_status = 'all';
if ( isset($_GET['post_status']) )
$post_status = $_GET['post_status'];
elseif ( isset($_POST['_status']) )
$post_status = $_POST['_status'];
$post_status = !empty($_REQUEST['post_status']) ? $_REQUEST['post_status'] : 'all';
if ( !in_array( $post_status, array('pending', 'draft', 'future') ) )
$posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
$posts_columns['date'] = __('Date');
@@ -807,13 +801,7 @@ function wp_manage_pages_columns() {
$posts_columns['cb'] = '<input type="checkbox" />';
$posts_columns['title'] = __('Title');
$posts_columns['author'] = __('Author');
$post_status = 'all';
if ( isset($_GET['post_status']) )
$post_status = $_GET['post_status'];
elseif ( isset($_POST['_status']) )
$post_status = $_POST['_status'];
$post_status = !empty($_REQUEST['post_status']) ? $_REQUEST['post_status'] : 'all';
if ( !in_array( $post_status, array('pending', 'draft', 'future') ) )
$posts_columns['comments'] = '<div class="vers"><img alt="" src="images/comment-grey-bubble.png" /></div>';
$posts_columns['date'] = __('Date');