From 970afde4c06e952aa582c6845c756eebcadc7eea Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 20 Jul 2017 14:02:44 +0000 Subject: [PATCH] Docs: Add a `@global` entry for `$wpdb` in `get_author_user_ids()`, `get_editable_authors()`, `get_editable_user_ids()`, `get_nonauthor_user_ids()`, and `get_others_unpublished_posts()`. Props parthsanghvi. Fixes #41368. Built from https://develop.svn.wordpress.org/trunk@41111 git-svn-id: http://core.svn.wordpress.org/trunk@40951 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/deprecated.php | 10 ++++++++++ wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index 6a3b4b8ed5..b032018f28 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -222,6 +222,8 @@ function use_codepress() { * * @deprecated 3.1.0 Use get_users() * + * @global wpdb $wpdb WordPress database abstraction object. + * * @return array List of user IDs. */ function get_author_user_ids() { @@ -241,6 +243,8 @@ function get_author_user_ids() { * * @deprecated 3.1.0 Use get_users() * + * @global wpdb $wpdb WordPress database abstraction object. + * * @param int $user_id User ID. * @return array|bool List of editable authors. False if no editable users. */ @@ -266,6 +270,8 @@ function get_editable_authors( $user_id ) { * * @deprecated 3.1.0 Use get_users() * + * @global wpdb $wpdb WordPress database abstraction object. + * * @param int $user_id User ID. * @param bool $exclude_zeros Optional. Whether to exclude zeroes. Default true. * @return array Array of editable user IDs, empty array otherwise. @@ -302,6 +308,8 @@ function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'p * Gets all users who are not authors. * * @deprecated 3.1.0 Use get_users() + * + * @global wpdb $wpdb WordPress database abstraction object. */ function get_nonauthor_user_ids() { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); @@ -664,6 +672,8 @@ endif; * @deprecated 3.1.0 Use get_posts() * @see get_posts() * + * @global wpdb $wpdb WordPress database abstraction object. + * * @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'. diff --git a/wp-includes/version.php b/wp-includes/version.php index 3548e94db8..8d89909676 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41110'; +$wp_version = '4.9-alpha-41111'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.