Changeset 16843 for trunk/wp-includes/query.php
- Timestamp:
- 12/09/2010 05:05:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r16830 r16843 1492 1492 'terms' => array( $q['term'] ), 1493 1493 'field' => 'slug', 1494 'operator' => 'IN',1495 1494 ); 1496 1495 } … … 1501 1500 'taxonomy' => $taxonomy, 1502 1501 'field' => 'slug', 1503 'operator' => 'IN'1504 1502 ); 1505 1503 … … 1551 1549 'taxonomy' => 'category', 1552 1550 'terms' => $q['category__in'], 1553 'operator' => 'IN',1554 1551 'field' => 'term_id' 1555 1552 ); … … 1562 1559 'terms' => $q['category__not_in'], 1563 1560 'operator' => 'NOT IN', 1564 'field' => 'term_id'1565 1561 ); 1566 1562 } … … 1571 1567 'taxonomy' => 'post_tag', 1572 1568 'terms' => $qv['tag_id'], 1573 'operator' => 'IN',1574 'field' => 'term_id'1575 1569 ); 1576 1570 } … … 1580 1574 'taxonomy' => 'post_tag', 1581 1575 'terms' => $q['tag__in'], 1582 'operator' => 'IN',1583 'field' => 'term_id'1584 1576 ); 1585 1577 } … … 1590 1582 'terms' => $q['tag__not_in'], 1591 1583 'operator' => 'NOT IN', 1592 'field' => 'term_id'1593 1584 ); 1594 1585 } 1595 1586 1587 _set_tax_query_defaults( $tax_query ); 1588 1596 1589 foreach ( $tax_query as $query ) { 1590 if ( ! is_array( $query ) ) 1591 continue; 1592 1597 1593 if ( 'IN' == $query['operator'] ) { 1598 1594 switch ( $query['taxonomy'] ) { … … 1946 1942 if ( !$this->is_singular ) { 1947 1943 $this->tax_query = $this->parse_tax_query( $q ); 1948 if ( !empty( $this->tax_query ) ) { 1944 1945 if ( ! empty( $this->tax_query ) ) { 1949 1946 $clauses = call_user_func_array( 'get_tax_sql', array( $this->tax_query, $wpdb->posts, 'ID', &$this) ); 1950 1947
Note: See TracChangeset
for help on using the changeset viewer.