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
This commit is contained in:
Sergey Biryukov 2017-07-20 14:02:44 +00:00
parent 4653f8bcfa
commit 970afde4c0
2 changed files with 11 additions and 1 deletions

View File

@ -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'.

View File

@ -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.