Set the taxonomy/term when using a custom ?tax_slug=term_slug query, props DD32, fixes #9453
git-svn-id: http://svn.automattic.com/wordpress/trunk@10866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8c7f6cb6ee
commit
68e836af48
|
@ -1398,8 +1398,10 @@ class WP_Query {
|
||||||
|
|
||||||
if ( empty($qv['taxonomy']) || empty($qv['term']) ) {
|
if ( empty($qv['taxonomy']) || empty($qv['term']) ) {
|
||||||
$this->is_tax = false;
|
$this->is_tax = false;
|
||||||
foreach ( $GLOBALS['wp_taxonomies'] as $t ) {
|
foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t ) {
|
||||||
if ( isset($t->query_var) && isset($qv[$t->query_var]) && '' != $qv[$t->query_var] ) {
|
if ( isset($t->query_var) && isset($qv[$t->query_var]) && '' != $qv[$t->query_var] ) {
|
||||||
|
$qv['taxonomy'] = $taxonomy;
|
||||||
|
$qv['term'] = $qv[$t->query_var];
|
||||||
$this->is_tax = true;
|
$this->is_tax = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue