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
This commit is contained in:
Peter Wilson 2024-10-30 22:34:19 +00:00
parent 7b9673722e
commit 844fe5cf06
2 changed files with 3 additions and 4 deletions

View File

@ -206,7 +206,6 @@ class WP_Term_Query {
'number' => '', 'number' => '',
'offset' => '', 'offset' => '',
'fields' => 'all', 'fields' => 'all',
'count' => false,
'name' => '', 'name' => '',
'slug' => '', 'slug' => '',
'term_taxonomy_id' => '', 'term_taxonomy_id' => '',
@ -302,7 +301,7 @@ class WP_Term_Query {
* *
* @param string|array $query Array or URL query string of parameters. * @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 * @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 ) { public function query( $query ) {
$this->query_vars = wp_parse_args( $query ); $this->query_vars = wp_parse_args( $query );
@ -344,7 +343,7 @@ class WP_Term_Query {
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* *
* @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string * @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() { public function get_terms() {
global $wpdb; global $wpdb;

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.