mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00: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:
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user