3049 | | foreach ( (array) $private_states as $state ) |
3050 | | $where .= current_user_can( $read_private_cap ) ? " OR $wpdb->posts.post_status = '$state'" : " OR $wpdb->posts.post_author = $user_id AND $wpdb->posts.post_status = '$state'"; |
| 3049 | foreach ( (array) $private_states as $state ) { |
| 3050 | if ( current_user_can( $read_private_cap ) ) { |
| 3051 | $where .= " OR $wpdb->posts.post_status = '$state'"; |
| 3052 | } else if ( ! is_multisite() || ( is_multisite() && is_user_member_of_blog() ) ) { |
| 3053 | $where .= " OR $wpdb->posts.post_author = $user_id AND $wpdb->posts.post_status = '$state'"; |
| 3054 | } |
| 3055 | } |