Changeset 31321 for trunk/src/wp-includes/query.php
- Timestamp:
- 02/01/2015 08:25:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r31312 r31321 2964 2964 $user_id = get_current_user_id(); 2965 2965 2966 $q_status = array(); 2966 2967 if ( ! empty( $q['post_status'] ) ) { 2967 2968 $statuswheres = array(); … … 3528 3529 $post_status_obj = get_post_status_object($status); 3529 3530 //$type = get_post_type($this->posts[0]); 3530 if ( !$post_status_obj->public ) { 3531 3532 // If the post_status was specifically requested, let it pass through. 3533 if ( !$post_status_obj->public && ! in_array( $status, $q_status ) ) { 3534 3531 3535 if ( ! is_user_logged_in() ) { 3532 3536 // User must be logged in to view unpublished posts.
Note: See TracChangeset
for help on using the changeset viewer.