From 844fe5cf06289960e087bd8a049a9b9f1d6841fa Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 30 Oct 2024 22:34:19 +0000 Subject: [PATCH] Taxonomy: Remove count references from `WP_Term_Query`. Remove further documentation and a code reference to the unsupported `count` argument within `WP_Term_Query`. Follow up to [59261]. Props johnbillion. Fixes #61094 Built from https://develop.svn.wordpress.org/trunk@59325 git-svn-id: http://core.svn.wordpress.org/trunk@58711 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-term-query.php | 5 ++--- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-term-query.php b/wp-includes/class-wp-term-query.php index dc5e86a7f8..d680fd602c 100644 --- a/wp-includes/class-wp-term-query.php +++ b/wp-includes/class-wp-term-query.php @@ -206,7 +206,6 @@ class WP_Term_Query { 'number' => '', 'offset' => '', 'fields' => 'all', - 'count' => false, 'name' => '', 'slug' => '', 'term_taxonomy_id' => '', @@ -302,7 +301,7 @@ class WP_Term_Query { * * @param string|array $query Array or URL query string of parameters. * @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string - * when 'count' is passed as a query var. + * when 'count' is passed to `$args['fields']`. */ public function query( $query ) { $this->query_vars = wp_parse_args( $query ); @@ -344,7 +343,7 @@ class WP_Term_Query { * @global wpdb $wpdb WordPress database abstraction object. * * @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string - * when 'count' is passed as a query var. + * when 'count' is passed to `$args['fields']`. */ public function get_terms() { global $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index ffcc33634e..a8abe0aa51 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59319'; +$wp_version = '6.8-alpha-59325'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.