Make WordPress Core


Ignore:
Timestamp:
02/10/2010 08:37:18 PM (13 years ago)
Author:
ryan
Message:

Retore p_status. see #9674

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.