Warning fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@9489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-03 06:36:52 +00:00
parent 4992d8ef3e
commit 67d066669a
2 changed files with 3 additions and 2 deletions

View File

@ -207,8 +207,6 @@ if ( $page_links )
<?php
$all = !( $h2_search || $post_status_q );
if ($posts) {
?>
<table class="widefat page">

View File

@ -735,6 +735,9 @@ function wp_manage_pages_columns() {
$posts_columns['cb'] = '<input type="checkbox" />';
$posts_columns['title'] = __('Title');
$posts_columns['author'] = __('Author');
$post_status = 'all';
if ( !empty($_GET['post_status']) )
$post_status = $_GET['post_status'];
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');