diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index d62e5e7cf9..e00c7edea7 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -278,7 +278,7 @@ function wp_validate_logged_in_cookie( $user_id ) { * @param int $userid User ID. * @param array|string $post_type Optional. Single post type or array of post types to count the number of posts for. Default 'post'. * @param bool $public_only Optional. Whether to only return counts for public posts. Default false. - * @return int Number of posts the user has written in this post type. + * @return string Number of posts the user has written in this post type. */ function count_user_posts( $userid, $post_type = 'post', $public_only = false ) { global $wpdb;