Changeset 6796 for trunk/wp-admin/includes/post.php
- Timestamp:
- 02/12/2008 05:51:53 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r6794 r6796 482 482 } 483 483 484 function get_available_post_statuses($type = 'post') { 485 global $wpdb; 486 487 $stati = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT post_status FROM $wpdb->posts WHERE post_type = %s", $type)); 488 return $stati; 489 } 490 484 491 function wp_edit_posts_query( $q = false ) { 485 492 global $wpdb; … … 496 503 ); 497 504 498 $avail_post_stati = $wpdb->get_col("SELECT DISTINCT post_status FROM $wpdb->posts WHERE post_type = 'post'");505 $avail_post_stati = get_available_post_statuses('post'); 499 506 500 507 $post_status_q = '';
Note: See TracChangeset
for help on using the changeset viewer.