git-svn-id: http://svn.automattic.com/wordpress/trunk@15850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ed9028c408
commit
fe9c746809
|
@ -1449,6 +1449,13 @@ class WP_Query extends WP_Object_Query {
|
|||
$tax_query = array();
|
||||
}
|
||||
|
||||
if ( !empty($q['taxonomy']) && !empty($q['term']) ) {
|
||||
$tax_query[] = array(
|
||||
'taxonomy' => $q['taxonomy'],
|
||||
'terms' => $q['term'],
|
||||
);
|
||||
}
|
||||
|
||||
foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
|
||||
if ( $t->query_var && !empty( $q[$t->query_var] ) ) {
|
||||
$tax_query_defaults = array(
|
||||
|
|
Loading…
Reference in New Issue