WordPress.org

Make WordPress Core

Changeset 13049


Ignore:
Timestamp:
02/10/10 20:37:18 (4 years ago)
Author:
ryan
Message:

Retore p_status. see #9674

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r13044 r13049  
    712712 * 
    713713 * label - A descriptive name for the post type marked for translation. Defaults to $post_type. 
    714  * description - A short descriptive summary of what the post type is. Defaults to blank.  
     714 * description - A short descriptive summary of what the post type is. Defaults to blank. 
    715715 * public - Whether posts of this type should be shown in the admin UI. Defaults to false. 
    716716 * exclude_from_search - Whether to exclude posts with this post type from search results. Defaults to true if the type is not public, false if the type is public. 
  • trunk/wp-includes/query.php

    r13037 r13049  
    21032103            } else { 
    21042104                foreach ( get_post_stati() as $status ) { 
    2105                     if ( in_array( $status, $q_status ) ) 
    2106                         $r_status[] = "$wpdb->posts.post_status = '$status'"; 
     2105                    if ( in_array( $status, $q_status ) ) { 
     2106                        if ( 'private' == $status ) 
     2107                            $p_status[] = "$wpdb->posts.post_status = '$status'"; 
     2108                        else 
     2109                            $r_status[] = "$wpdb->posts.post_status = '$status'"; 
     2110                    } 
    21072111                } 
    21082112            } 
Note: See TracChangeset for help on using the changeset viewer.