mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Set the taxonomy/term when using a custom ?tax_slug=term_slug query, props DD32, fixes #9453
git-svn-id: https://develop.svn.wordpress.org/trunk@10866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1398,8 +1398,10 @@ class WP_Query {
|
||||
|
||||
if ( empty($qv['taxonomy']) || empty($qv['term']) ) {
|
||||
$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] ) {
|
||||
$qv['taxonomy'] = $taxonomy;
|
||||
$qv['term'] = $qv[$t->query_var];
|
||||
$this->is_tax = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user