Always have a WP_Tax_Query instance, to prevent notices. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
77f5f54ff7
commit
5da70bad87
@ -1936,9 +1936,9 @@ class WP_Query {
|
||||
$search = apply_filters_ref_array('posts_search', array( $search, &$this ) );
|
||||
|
||||
// Taxonomies
|
||||
if ( $this->is_category || $this->is_tag || $this->is_tax ) {
|
||||
$this->tax_query = $this->parse_tax_query( $q );
|
||||
$this->tax_query = $this->parse_tax_query( $q );
|
||||
|
||||
if ( $this->is_category || $this->is_tag || $this->is_tax ) {
|
||||
$clauses = $this->tax_query->get_sql( $wpdb->posts, 'ID' );
|
||||
|
||||
$join .= $clauses['join'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user