Changeset 7637 for branches/2.5/wp-admin/includes/post.php
- Timestamp:
- 04/09/2008 08:09:08 PM (18 years ago)
- File:
-
- 1 edited
-
branches/2.5/wp-admin/includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-admin/includes/post.php
r7613 r7637 507 507 508 508 function get_available_post_statuses($type = 'post') { 509 global $wpdb; 510 511 $stati = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT post_status FROM $wpdb->posts WHERE post_type = %s", $type)); 512 return $stati; 509 $stati = wp_count_posts($type); 510 511 return array_keys(get_object_vars($stati)); 513 512 } 514 513
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)