From 9de0f746551b379f0a1bf96b805dca17566bcfa6 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 21 Oct 2024 01:20:40 +0000 Subject: [PATCH] Taxonomy: Remove count argument from `WP_Term_Query` docs. The DocBlock of `WP_Term_Query::__construct` mentions the count argument, however, this argument is not supported in `WP_Term_Query::get_terms()`. Props sergeybiryukov, swissspidy, snehapatil02, tyrannous. Fixes #61094. git-svn-id: https://develop.svn.wordpress.org/trunk@59261 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-term-query.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/class-wp-term-query.php b/src/wp-includes/class-wp-term-query.php index 77a3b9d23f804..dc5e86a7f84e6 100644 --- a/src/wp-includes/class-wp-term-query.php +++ b/src/wp-includes/class-wp-term-query.php @@ -148,8 +148,6 @@ class WP_Term_Query { * - 'id=>slug' Returns an associative array of term slugs, * keyed by term ID (`string[]`). * Default 'all'. - * @type bool $count Whether to return a term count. If true, will take precedence - * over `$fields`. Default false. * @type string|string[] $name Name or array of names to return term(s) for. * Default empty. * @type string|string[] $slug Slug or array of slugs to return term(s) for.