Taxonomy: Ensure that mods to query vars in `pre_term_query` callbacks have an effect.
Previously, it was possible to modify the `query_vars` array, but the changes would be ignored after `pre_term_query` had finished running. Props jfarthing84. Fixes #39354. git-svn-id: https://develop.svn.wordpress.org/trunk@39625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6c714ab73c
commit
4b984b763d
|
@ -305,7 +305,7 @@ class WP_Term_Query {
|
|||
global $wpdb;
|
||||
|
||||
$this->parse_query( $this->query_vars );
|
||||
$args = $this->query_vars;
|
||||
$args = &$this->query_vars;
|
||||
|
||||
// Set up meta_query so it's available to 'pre_get_terms'.
|
||||
$this->meta_query = new WP_Meta_Query();
|
||||
|
|
Loading…
Reference in New Issue