From 1094410e1a19e38a0c2bfed95d72c02df1fc0d94 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 13 Jul 2015 22:02:20 +0000 Subject: [PATCH] Wrap a long changelog entry description in the DocBlock for `count_user_posts()`. Also clarify the description for the new `$public_only` parameter, added in [32523]. See #32891. git-svn-id: https://develop.svn.wordpress.org/trunk@33241 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ) {