|
@@ 640-647 (lines=8) @@
|
| 637 |
|
AND {$this->db->terms}.{$query['field']} IN ($terms) |
| 638 |
|
" ); |
| 639 |
|
break; |
| 640 |
|
case 'term_taxonomy_id': |
| 641 |
|
$terms = implode( ',', array_map( 'intval', $query['terms'] ) ); |
| 642 |
|
$terms = $this->db->get_col( " |
| 643 |
|
SELECT $resulting_field |
| 644 |
|
FROM {$this->db->term_taxonomy} |
| 645 |
|
WHERE term_taxonomy_id IN ($terms) |
| 646 |
|
" ); |
| 647 |
|
break; |
| 648 |
|
default: |
| 649 |
|
$terms = implode( ',', array_map( 'intval', $query['terms'] ) ); |
| 650 |
|
$terms = $this->db->get_col( " |
|
@@ 648-655 (lines=8) @@
|
| 645 |
|
WHERE term_taxonomy_id IN ($terms) |
| 646 |
|
" ); |
| 647 |
|
break; |
| 648 |
|
default: |
| 649 |
|
$terms = implode( ',', array_map( 'intval', $query['terms'] ) ); |
| 650 |
|
$terms = $this->db->get_col( " |
| 651 |
|
SELECT $resulting_field |
| 652 |
|
FROM {$this->db->term_taxonomy} |
| 653 |
|
WHERE taxonomy = '{$query['taxonomy']}' |
| 654 |
|
AND term_id IN ($terms) |
| 655 |
|
" ); |
| 656 |
|
} |
| 657 |
|
|
| 658 |
|
if ( 'AND' == $query['operator'] && count( $terms ) < count( $query['terms'] ) ) { |