Warning fixes

git-svn-id: https://develop.svn.wordpress.org/trunk@9489 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-03 06:36:52 +00:00
parent 5ae2b7fd3e
commit c108a2cec6
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');