Make WordPress Core


Ignore:
Timestamp:
02/12/2008 05:51:53 AM (18 years ago)
Author:
ryan
Message:

Manage->Pages design update

File:
1 edited

Legend:

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

    r6794 r6796  
    482482}
    483483
     484function 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
    484491function wp_edit_posts_query( $q = false ) {
    485492    global $wpdb;
     
    496503            );
    497504
    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');
    499506
    500507    $post_status_q = '';
Note: See TracChangeset for help on using the changeset viewer.