WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/20/2010 09:28:50 PM (9 years ago)
Author:
scribu
Message:

Fix logic for when excluding a non-existant term. See #12891

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r16511 r16512  
    19481948            $clauses = call_user_func_array( 'get_tax_sql', array( $this->tax_query, $wpdb->posts, 'ID', &$this) );
    19491949
    1950             if ( empty($clauses['join']) && empty($clauses['where']) ) {
    1951                 $where .= ' AND 0 = 1';
    1952             } else {
    1953                 $join .= $clauses['join'];
    1954                 $where .= $clauses['where'];
    1955             }
     1950            $join .= $clauses['join'];
     1951            $where .= $clauses['where'];
    19561952
    19571953            if ( $this->is_tax ) {
Note: See TracChangeset for help on using the changeset viewer.