From 0a314eed32e8ffa42293bff8e9110425084e5726 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 23 Dec 2015 06:58:25 +0000 Subject: [PATCH] Docs: Add missing `@since` and properly mark the optional `$type` parameter as such in the DocBlock for the deprecated `get_others_unpublished_posts()` function. Introduced in [5707]. See #32246. Built from https://develop.svn.wordpress.org/trunk@36071 git-svn-id: http://core.svn.wordpress.org/trunk@36036 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/deprecated.php | 10 ++++++---- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index f7f7a5e685..67463a0ed0 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -658,16 +658,18 @@ class WP_User_Search { endif; /** - * Retrieve editable posts from other users. + * Retrieves editable posts from other users. * + * @since 2.3.0 * @deprecated 3.1.0 Use get_posts() * @see get_posts() * - * @param int $user_id User ID to not retrieve posts from. - * @param string $type Optional, defaults to 'any'. Post type to retrieve, can be 'draft' or 'pending'. + * @param int $user_id User ID to not retrieve posts from. + * @param string $type Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all). + * Default 'any'. * @return array List of posts from others. */ -function get_others_unpublished_posts($user_id, $type='any') { +function get_others_unpublished_posts( $user_id, $type = 'any' ) { _deprecated_function( __FUNCTION__, '3.1' ); global $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index 6fe7786af0..0f7cc7dbf7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36070'; +$wp_version = '4.5-alpha-36071'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.