diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index f71494244e..534a9de4f1 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1208,6 +1208,11 @@ function get_terms( $args = array(), $deprecated = '' ) { $terms = $term_query->query( $args ); + // Count queries are not filtered, for legacy reasons. + if ( $term_query->query_vars['count'] ) { + return $terms; + } + /** * Filters the found terms. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 5e2b459875..7d3aa2f505 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37622'; +$wp_version = '4.6-alpha-37623'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.