Notice fixes. Props DD32. fixes #9502

git-svn-id: https://develop.svn.wordpress.org/trunk@10904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-10 04:34:44 +00:00
parent 10aaa00f62
commit 46490b01a5
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'];
}