Changeset 28664 for trunk/src/wp-includes/query.php
- Timestamp:
- 06/04/2014 05:49:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r28623 r28664 1831 1831 'include_children' => false 1832 1832 ); 1833 } elseif ( isset( $this->query['category__in'] ) ) { 1834 $q['category__in'] = false; 1833 1835 } 1834 1836 … … 1888 1890 'terms' => $q['tag__in'] 1889 1891 ); 1892 } elseif ( isset( $this->query['tag__in'] ) ) { 1893 $q['tag__in'] = false; 1890 1894 } 1891 1895 … … 1915 1919 'field' => 'slug' 1916 1920 ); 1921 } elseif ( isset( $this->query['tag_slug__in'] ) ) { 1922 $q['tag_slug__in'] = false; 1917 1923 } 1918 1924 … … 2501 2507 } 2502 2508 2509 // If *__in is passed to WP_Query as an empty array, don't return results 2510 foreach ( array( 'category', 'tag', 'tag_slug' ) as $in ) { 2511 if ( isset( $q["{$in}__in"] ) && false === $q["{$in}__in"] ) { 2512 $where = " AND 1=0 $where"; 2513 } 2514 } 2515 2503 2516 if ( $this->is_tax ) { 2504 2517 if ( empty($post_type) ) { … … 2592 2605 $author__in = implode( ',', array_map( 'absint', array_unique( (array) $q['author__in'] ) ) ); 2593 2606 $where .= " AND {$wpdb->posts}.post_author IN ($author__in) "; 2607 } elseif ( isset( $this->query['author__in'] ) ) { 2608 $author__in = 0; 2609 $where .= ' AND 1=0 '; 2594 2610 } 2595 2611
Note: See TracChangeset
for help on using the changeset viewer.