Changeset 16511
- Timestamp:
- 11/20/2010 09:10:20 PM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r16506 r16511 1948 1948 $clauses = call_user_func_array( 'get_tax_sql', array( $this->tax_query, $wpdb->posts, 'ID', &$this) ); 1949 1949 1950 $join .= $clauses['join']; 1951 $where .= $clauses['where']; 1950 if ( empty($clauses['join']) && empty($clauses['where']) ) { 1951 $where .= ' AND 0 = 1'; 1952 } else { 1953 $join .= $clauses['join']; 1954 $where .= $clauses['where']; 1955 } 1952 1956 1953 1957 if ( $this->is_tax ) { -
trunk/wp-includes/taxonomy.php
r16467 r16511 540 540 foreach ( $taxonomies as $taxonomy ) { 541 541 if ( ! taxonomy_exists( $taxonomy ) ) 542 return ' AND 0 = 1';542 return array( 'join' => '', 'where' => ' AND 0 = 1'); 543 543 } 544 544 … … 593 593 } 594 594 } 595 595 596 return compact( 'join', 'where' ); 596 597 }
Note: See TracChangeset
for help on using the changeset viewer.