summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-04-14 22:32:08 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-04-14 22:32:08 +0000
commit2dadc00a35e29270da4eabc064522d277361c2a9 (patch)
tree52ae17c4428c21f64a24f0b502163df99532c48d
parent4201f12a28825bc368dd76c0302816dcaf91607c (diff)
downloadwordpress-2dadc00a35e29270da4eabc064522d277361c2a9.tar.gz
wordpress-2dadc00a35e29270da4eabc064522d277361c2a9.zip
Docs: Correct parameter types for `get_comments_number_text()`.
This updates the `@param` types to correctly reflect the default `false` parameter. Follow-up to [6495], [25567], [28912], [49936]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60166 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r--src/wp-includes/comment-template.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
index bcca00bc23..9190cf6eff 100644
--- a/src/wp-includes/comment-template.php
+++ b/src/wp-includes/comment-template.php
@@ -954,10 +954,10 @@ function comments_number( $zero = false, $one = false, $more = false, $post = 0
* @since 4.0.0
* @since 5.4.0 Added the `$post` parameter to allow using the function outside of the loop.
*
- * @param string $zero Optional. Text for no comments. Default false.
- * @param string $one Optional. Text for one comment. Default false.
- * @param string $more Optional. Text for more than one comment. Default false.
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is the global `$post`.
+ * @param string|false $zero Optional. Text for no comments. Default false.
+ * @param string|false $one Optional. Text for one comment. Default false.
+ * @param string|false $more Optional. Text for more than one comment. Default false.
+ * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is the global `$post`.
* @return string Language string for the number of comments a post has.
*/
function get_comments_number_text( $zero = false, $one = false, $more = false, $post = 0 ) {