From 5399b2137fe6d4061a89012ad8b5859d73311346 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 19 Dec 2015 19:41:30 +0000 Subject: [PATCH] Docs: Add missing parameter and return notations to the DocBlock for the deprecated `get_usernumposts()` function. See #32246. Built from https://develop.svn.wordpress.org/trunk@36030 git-svn-id: http://core.svn.wordpress.org/trunk@35995 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 5 ++++- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 1c5bdfe2f8..8b6ee1690e 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -2412,11 +2412,14 @@ function get_profile( $field, $user = false ) { } /** - * Number of posts user has written. + * Retrieves the number of posts a user has written. * * @since 0.71 * @deprecated 3.0.0 Use count_user_posts() * @see count_user_posts() + * + * @param int $userid User to count posts for. + * @return int Number of posts the given user has written. */ function get_usernumposts( $userid ) { _deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index edf4e4584a..c04bd798c6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36029'; +$wp_version = '4.5-alpha-36030'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.