Changeset 16495
- Timestamp:
- 11/19/2010 07:25:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r16482 r16495 1592 1592 } 1593 1593 1594 foreach ( $tax_query as $query ) { 1595 if ( 'IN' == $query['operator'] ) { 1596 switch ( $query['taxonomy'] ) { 1597 case 'category': 1598 $this->is_category = true; 1599 break; 1600 case 'post_tag': 1601 $this->is_tag = true; 1602 break; 1603 default: 1604 $this->is_tax = true; 1594 if ( !$this->is_singular() ) { 1595 foreach ( $tax_query as $query ) { 1596 if ( 'IN' == $query['operator'] ) { 1597 switch ( $query['taxonomy'] ) { 1598 case 'category': 1599 $this->is_category = true; 1600 break; 1601 case 'post_tag': 1602 $this->is_tag = true; 1603 break; 1604 default: 1605 $this->is_tax = true; 1606 } 1605 1607 } 1606 1608 }
Note: See TracChangeset
for help on using the changeset viewer.