Make WordPress Core


Ignore:
Timestamp:
04/10/2009 04:34:44 AM (17 years ago)
Author:
ryan
Message:

Notice fixes. Props DD32. fixes #9502

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r10858 r10904  
    984984        $count = $wpdb->get_results( $wpdb->prepare( $query, $type ), ARRAY_A );
    985985
    986         $stats = array( );
     986        $stats = array( 'publish' => 0, 'private' => 0, 'draft' => 0, 'pending' => 0, 'future' => 0 );
    987987        foreach( (array) $count as $row_num => $row ) {
    988988                $stats[$row['post_status']] = $row['num_posts'];
Note: See TracChangeset for help on using the changeset viewer.