Make WordPress Core

Changeset 33241


Ignore:
Timestamp:
07/13/2015 10:02:20 PM (10 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r33116 r33241  
    256256 * @since 3.0.0
    257257 * @since 4.1.0 Added `$post_type` argument.
    258  * @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array of post types to `$post_type`.
     258 * @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array
     259 *              of post types to `$post_type`.
    259260 *
    260261 * @global wpdb $wpdb WordPress database object for queries.
     
    262263 * @param int          $userid      User ID.
    263264 * @param array|string $post_type   Optional. Post type(s) to count the number of posts for. Default 'post'.
    264  * @param bool         $public_only Optional. Only return counts for public posts. Defaults to false.
     265 * @param bool         $public_only Optional. Whether to only return counts for public posts. Default false.
    265266 * @return int Number of posts the user has written in this post type.
    266267 */
Note: See TracChangeset for help on using the changeset viewer.