diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 8f7033e1ed..e0ddcf013d 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -255,13 +255,14 @@ function wp_validate_logged_in_cookie( $user_id ) { * * @since 3.0.0 * @since 4.1.0 Added `$post_type` argument. - * @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array of post types to `$post_type`. + * @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array + * of post types to `$post_type`. * * @global wpdb $wpdb WordPress database object for queries. * * @param int $userid User ID. * @param array|string $post_type Optional. Post type(s) to count the number of posts for. Default 'post'. - * @param bool $public_only Optional. Only return counts for public posts. Defaults to false. + * @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. */ function count_user_posts( $userid, $post_type = 'post', $public_only = false ) {