mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user