Docs: Better clarify that the `$post_type` parameter for the `get_usernumposts` filter and `count_user_posts()` can accept either a single post type or array of post types.

Props tyxla
See #33481. Fixes #33520.

Built from https://develop.svn.wordpress.org/trunk@33716


git-svn-id: http://core.svn.wordpress.org/trunk@33683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-08-23 17:46:24 +00:00
parent ea4f27f519
commit 5e32a0c646
2 changed files with 3 additions and 3 deletions

View File

@ -261,7 +261,7 @@ function wp_validate_logged_in_cookie( $user_id ) {
* @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 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.
*/
@ -281,7 +281,7 @@ function count_user_posts( $userid, $post_type = 'post', $public_only = false )
*
* @param int $count The user's post count.
* @param int $userid User ID.
* @param string|array $post_type Post types to count the number of posts for.
* @param string|array $post_type Single post type or array of post types to count the number of posts for.
* @param bool $public_only Whether to limit counted posts to public posts.
*/
return apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33715';
$wp_version = '4.4-alpha-33716';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.