From e20fd21b39abc64c03b8a71d9b6cb9991e91759b Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 10 Apr 2009 04:34:44 +0000 Subject: [PATCH] Notice fixes. Props DD32. fixes #9502 git-svn-id: http://svn.automattic.com/wordpress/trunk@10904 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 2 +- wp-includes/post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 186a6e5a7f..ee536a510e 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -368,7 +368,7 @@ if ( $page_links )
- +

diff --git a/wp-includes/post.php b/wp-includes/post.php index 7d5a1c6b7a..65af2dcf25 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -983,7 +983,7 @@ function wp_count_posts( $type = 'post', $perm = '' ) { $count = $wpdb->get_results( $wpdb->prepare( $query, $type ), ARRAY_A ); - $stats = array( ); + $stats = array( 'publish' => 0, 'private' => 0, 'draft' => 0, 'pending' => 0, 'future' => 0 ); foreach( (array) $count as $row_num => $row ) { $stats[$row['post_status']] = $row['num_posts']; }