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
This commit is contained in:
Sergey Biryukov 2015-12-25 20:17:55 +00:00
parent c54bcc4d39
commit bcc607689b
1 changed files with 1 additions and 1 deletions

View File

@ -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;