Changeset 28613 for trunk/src/wp-includes/query.php
- Timestamp:
- 05/29/2014 06:03:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r28612 r28613 2449 2449 $post__in = implode(',', array_map( 'absint', $q['post__in'] )); 2450 2450 $where .= " AND {$wpdb->posts}.ID IN ($post__in)"; 2451 } elseif ( isset( $this->query['post__in'] ) ) { 2452 $post__in = 0; 2453 $where .= " AND 1=0 "; 2451 2454 } elseif ( $q['post__not_in'] ) { 2452 2455 $post__not_in = implode(',', array_map( 'absint', $q['post__not_in'] )); … … 2459 2462 $post_parent__in = implode( ',', array_map( 'absint', $q['post_parent__in'] ) ); 2460 2463 $where .= " AND {$wpdb->posts}.post_parent IN ($post_parent__in)"; 2464 } elseif ( isset( $this->query['post_parent__in'] ) ) { 2465 $post_parent__in = 0; 2466 $where .= " AND 1=0 "; 2461 2467 } elseif ( $q['post_parent__not_in'] ) { 2462 2468 $post_parent__not_in = implode( ',', array_map( 'absint', $q['post_parent__not_in'] ) );
Note: See TracChangeset
for help on using the changeset viewer.