Skip to content

Commit c1f2216

Browse files
Docs: Correct the type of the $count parameter in get_usernumposts filter.
Follow-up to [8873], [26901], [36085]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60296 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fe6c27b commit c1f2216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ function count_user_posts( $userid, $post_type = 'post', $public_only = false )
637637
* @since 4.1.0 Added `$post_type` argument.
638638
* @since 4.3.1 Added `$public_only` argument.
639639
*
640-
* @param int $count The user's post count.
640+
* @param string $count The user's post count as a numeric string.
641641
* @param int $userid User ID.
642642
* @param string|array $post_type Single post type or array of post types to count the number of posts for.
643643
* @param bool $public_only Whether to limit counted posts to public posts.

0 commit comments

Comments
 (0)