mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
10aaa00f62
commit
46490b01a5
@ -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… yet.') ?></p>
|
||||
</form>
|
||||
|
||||
|
@ -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'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user