Notice fixes. Props DD32. fixes #9502

git-svn-id: http://svn.automattic.com/wordpress/trunk@10904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-10 04:34:44 +00:00
parent 9d35395cb5
commit e20fd21b39
2 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ if ( $page_links )
<div id="ajax-response"></div>
<?php } elseif ( 'moderated' == $_GET['comment_status'] ) { ?>
<?php } elseif ( isset($_GET['comment_status']) && 'moderated' == $_GET['comment_status'] ) { ?>
<p><?php _e('No comments awaiting moderation&hellip; yet.') ?></p>
</form>

View File

@ -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'];
}