Changeset 27067 for trunk/src/wp-includes/query.php
- Timestamp:
- 02/02/2014 07:35:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r27018 r27067 2757 2757 $statuswheres[$index] = "($statuswhere OR ($wpdb->posts.post_status = 'inherit' AND " . str_replace($wpdb->posts, 'p2', $statuswhere) . "))"; 2758 2758 } 2759 foreach ( $statuswheres as $statuswhere ) 2760 $where .= " AND $statuswhere"; 2759 $where_status = implode( ' OR ', $statuswheres ); 2760 if ( ! empty( $where_status ) ) { 2761 $where .= " AND ($where_status)"; 2762 } 2761 2763 } elseif ( !$this->is_singular ) { 2762 2764 $where .= " AND ($wpdb->posts.post_status = 'publish'";
Note: See TracChangeset
for help on using the changeset viewer.