Changeset 13199
- Timestamp:
- 02/18/2010 08:03:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r13198 r13199 1426 1426 $count = $wpdb->get_results( $wpdb->prepare( $query, $type ), ARRAY_A ); 1427 1427 1428 $stats = array_fill_keys( get_post_stati(), 0); 1428 $stats = array(); 1429 foreach ( get_post_stati() as $state ) 1430 $stats[$state] = 0; 1431 1429 1432 foreach ( (array) $count as $row_num => $row ) 1430 1433 $stats[$row['post_status']] = $row['num_posts'];
Note: See TracChangeset
for help on using the changeset viewer.