WordPress.org

Make WordPress Core

Changeset 16851


Ignore:
Timestamp:
12/09/2010 07:42:25 PM (8 years ago)
Author:
scribu
Message:

Always have a WP_Tax_Query instance, to prevent notices. See #15752

File:
1 edited

Legend:

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

    r16849 r16851  
    19371937
    19381938        // Taxonomies
     1939        $this->tax_query = $this->parse_tax_query( $q );
     1940
    19391941        if ( $this->is_category || $this->is_tag || $this->is_tax ) {
    1940             $this->tax_query = $this->parse_tax_query( $q );
    1941 
    19421942            $clauses = $this->tax_query->get_sql( $wpdb->posts, 'ID' );
    19431943
Note: See TracChangeset for help on using the changeset viewer.