Changeset 49832 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 12/18/2020 12:17:32 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r49830 r49832 2525 2525 $where .= " AND ($where_status)"; 2526 2526 } 2527 2528 2527 } elseif ( ! $this->is_singular ) { 2529 2528 if ( 'any' === $post_type ) { … … 2551 2550 // Public statuses. 2552 2551 $public_statuses = get_post_stati( array( 'public' => true ) ); 2553 $status_clauses = [];2552 $status_clauses = array(); 2554 2553 foreach ( (array) $public_statuses as $public_status ) { 2555 2554 $status_clauses[] = "{$wpdb->posts}.post_status = '$public_status'"; … … 2590 2589 $where .= ' AND 1=0 '; 2591 2590 } 2592 2593 2591 } else { 2594 2592 $where .= $post_type_where;
Note: See TracChangeset
for help on using the changeset viewer.