mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@15850 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user