WordPress.org

Make WordPress Core

Changeset 16404


Ignore:
Timestamp:
11/16/2010 04:36:20 PM (8 years ago)
Author:
scribu
Message:

Revert [16402] outright. Causes issues with themes. See #12891

File:
1 edited

Legend:

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

    r16402 r16404  
    19321932
    19331933        // Taxonomies
    1934         $tax_query = $this->parse_tax_query( $q );
    1935 
    1936         if ( !empty( $tax_query ) ) {
     1934        $q['tax_query'] = $this->parse_tax_query( $q );
     1935        if ( !empty( $q['tax_query'] ) ) {
    19371936            if ( empty($post_type) ) {
    19381937                $post_type = 'any';
     
    19421941            }
    19431942
    1944             $where .= get_tax_sql( $tax_query, "$wpdb->posts.ID" );
     1943            $where .= get_tax_sql( $q['tax_query'], "$wpdb->posts.ID" );
    19451944
    19461945            // Back-compat
    1947             $tax_query_in = wp_list_filter( $tax_query, array( 'operator' => 'IN' ) );
     1946            $tax_query_in = wp_list_filter( $q['tax_query'], array( 'operator' => 'IN' ) );
    19481947            if ( !empty( $tax_query_in ) ) {
    19491948                if ( !isset( $q['taxonomy'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.