mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
WP_Query taxonomy query vars should be set to first of multiple taxonomies.
This provides better parity with `get_queried_object()`, which will return the first taxonomy/term matched by the current query. [29891] introduced the abnormal behavior for the 'taxonomy' and 'term' query vars. Props Chouby. Fixes #35619. git-svn-id: https://develop.svn.wordpress.org/trunk@36484 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2857,6 +2857,9 @@ class WP_Query {
|
||||
} else {
|
||||
$q['term_id'] = $queried_items['terms'][0];
|
||||
}
|
||||
|
||||
// Take the first one we find.
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user