Changeset 16880
- Timestamp:
- 12/11/2010 03:20:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r16854 r16880 1356 1356 } 1357 1357 1358 $this->parse_tax_query( $qv ); 1358 $tax_query_obj = $this->parse_tax_query( $qv ); 1359 1360 foreach ( $tax_query_obj->queries as $tax_query ) { 1361 if ( 'IN' == $tax_query['operator'] ) { 1362 switch ( $tax_query['taxonomy'] ) { 1363 case 'category': 1364 $this->is_category = true; 1365 break; 1366 case 'post_tag': 1367 $this->is_tag = true; 1368 break; 1369 default: 1370 $this->is_tax = true; 1371 } 1372 } 1373 } 1374 1375 unset( $tax_query_obj, $tax_query ); 1359 1376 1360 1377 _parse_meta_query( $qv ); … … 1472 1489 1473 1490 /* 1474 * Parses various taxonomy related query vars and sets the appropriate query flags.1491 * Parses various taxonomy related query vars. 1475 1492 * 1476 1493 * @access protected … … 1585 1602 } 1586 1603 1587 $tax_query_obj = new WP_Tax_Query( $tax_query ); 1588 1589 foreach ( $tax_query_obj->queries as $query ) { 1590 if ( 'IN' == $query['operator'] ) { 1591 switch ( $query['taxonomy'] ) { 1592 case 'category': 1593 $this->is_category = true; 1594 break; 1595 case 'post_tag': 1596 $this->is_tag = true; 1597 break; 1598 default: 1599 $this->is_tax = true; 1600 } 1601 } 1602 } 1603 1604 return $tax_query_obj; 1604 return new WP_Tax_Query( $tax_query ); 1605 1605 } 1606 1606
Note: See TracChangeset
for help on using the changeset viewer.