From fb3c57a399790323a3fd0b0f6b02b4b5b52f4892 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Mon, 31 Oct 2016 15:46:37 +0000 Subject: [PATCH] Taxonomy: Remove redundant 'get_terms_args' filter call from `WP_Term_Query`. Introduced in [37572]. The correct 'get_terms_args' filter call is in `WP_Term_Query::get_terms()`. Props Tkama. Fixes #38589. git-svn-id: https://develop.svn.wordpress.org/trunk@39057 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-term-query.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/wp-includes/class-wp-term-query.php b/src/wp-includes/class-wp-term-query.php index 64b5578543..434d810db0 100644 --- a/src/wp-includes/class-wp-term-query.php +++ b/src/wp-includes/class-wp-term-query.php @@ -265,15 +265,7 @@ class WP_Term_Query { $query['taxonomy'] = $taxonomies; - /** - * Filters the terms query arguments. - * - * @since 3.1.0 - * - * @param array $args An array of get_terms() arguments. - * @param array $taxonomies An array of taxonomies. - */ - $this->query_vars = apply_filters( 'get_terms_args', $query, $taxonomies ); + $this->query_vars = $query; /** * Fires after term query vars have been parsed.