From bcc607689be0cf9988dd5069561535373d29c5ec Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 25 Dec 2015 20:17:55 +0000 Subject: [PATCH] Docs: Correct `@return` type for `count_user_posts()`. Props nofearinc. Fixes #35222. git-svn-id: https://develop.svn.wordpress.org/trunk@36085 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;