diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php
index 2f0dd53558..1507215a1d 100644
a
|
b
|
class WP_Query { |
2473 | 2473 | } |
2474 | 2474 | } |
2475 | 2475 | } else { |
2476 | | foreach ( get_post_stati() as $status ) { |
2477 | | if ( in_array( $status, $q_status, true ) ) { |
2478 | | if ( 'private' === $status ) { |
2479 | | $p_status[] = "{$wpdb->posts}.post_status = '$status'"; |
2480 | | } else { |
2481 | | $r_status[] = "{$wpdb->posts}.post_status = '$status'"; |
2482 | | } |
| 2476 | foreach ( $q_status as $status ) { |
| 2477 | if ( 'private' === $status ) { |
| 2478 | $p_status[] = "{$wpdb->posts}.post_status = '$status'"; |
| 2479 | } else { |
| 2480 | $r_status[] = "{$wpdb->posts}.post_status = '$status'"; |
2483 | 2481 | } |
2484 | 2482 | } |
2485 | 2483 | } |