WordPress.org

Make WordPress Core

Changeset 16853


Ignore:
Timestamp:
12/10/2010 07:51:04 AM (8 years ago)
Author:
scribu
Message:

Fix notice in get_queried_object(). See #15752

File:
1 edited

Legend:

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

    r16851 r16853  
    26552655        $this->queried_object_id = 0;
    26562656
    2657         $tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) );
    2658         if ( !empty( $tax_query_in ) ) {
     2657        if ( $this->is_category || $this->is_tag || $this->is_tax ) {
     2658            $tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) );
     2659
    26592660            $query = reset( $tax_query_in );
    26602661
Note: See TracChangeset for help on using the changeset viewer.