mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Docs: Correct @return
type for count_user_posts()
.
Props nofearinc. Fixes #35222. Built from https://develop.svn.wordpress.org/trunk@36085 git-svn-id: http://core.svn.wordpress.org/trunk@36050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f9bba421b5
commit
8009f97f79
@ -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;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36084';
|
||||
$wp_version = '4.5-alpha-36085';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user