Changeset 16850 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 12/09/2010 07:36:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r16849 r16850 536 536 var $queries = array(); 537 537 538 function __construct( &$tax_query ) {538 function WP_Tax_Query( &$tax_query ) { 539 539 if ( isset( $tax_query['relation'] ) && strtoupper( $tax_query['relation'] ) == 'OR' ) { 540 540 $this->relation = 'OR'; … … 600 600 601 601 if ( empty( $terms ) ) { 602 if ( 'OR' == $ relation )602 if ( 'OR' == $this->relation ) 603 603 continue; 604 604 else … … 634 634 635 635 if ( !empty( $where ) ) 636 $where = ' AND ( ' . implode( " $ relation ", $where ) . ' )';636 $where = ' AND ( ' . implode( " $this->relation ", $where ) . ' )'; 637 637 else 638 638 $where = '';
Note: See TracChangeset
for help on using the changeset viewer.