Fix notice in get_queried_object(). See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16853 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
83d896d013
commit
ea0d5bf166
@ -2654,8 +2654,9 @@ class WP_Query {
|
||||
$this->queried_object = NULL;
|
||||
$this->queried_object_id = 0;
|
||||
|
||||
$tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) );
|
||||
if ( !empty( $tax_query_in ) ) {
|
||||
if ( $this->is_category || $this->is_tag || $this->is_tax ) {
|
||||
$tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) );
|
||||
|
||||
$query = reset( $tax_query_in );
|
||||
|
||||
if ( 'term_id' == $query['field'] )
|
||||
|
Loading…
Reference in New Issue
Block a user