Fix notice in get_queried_object(). See #15752
git-svn-id: http://svn.automattic.com/wordpress/trunk@16853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b48cc1624
commit
ffb54b11c2
|
@ -2654,8 +2654,9 @@ class WP_Query {
|
||||||
$this->queried_object = NULL;
|
$this->queried_object = NULL;
|
||||||
$this->queried_object_id = 0;
|
$this->queried_object_id = 0;
|
||||||
|
|
||||||
|
if ( $this->is_category || $this->is_tag || $this->is_tax ) {
|
||||||
$tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) );
|
$tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) );
|
||||||
if ( !empty( $tax_query_in ) ) {
|
|
||||||
$query = reset( $tax_query_in );
|
$query = reset( $tax_query_in );
|
||||||
|
|
||||||
if ( 'term_id' == $query['field'] )
|
if ( 'term_id' == $query['field'] )
|
||||||
|
|
Loading…
Reference in New Issue