Make WordPress Core


Ignore:
Timestamp:
07/20/2017 02:01:39 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/deprecated.php

    r40922 r41111  
    223223 * @deprecated 3.1.0 Use get_users()
    224224 *
     225 * @global wpdb $wpdb WordPress database abstraction object.
     226 *
    225227 * @return array List of user IDs.
    226228 */
     
    242244 * @deprecated 3.1.0 Use get_users()
    243245 *
     246 * @global wpdb $wpdb WordPress database abstraction object.
     247 *
    244248 * @param int $user_id User ID.
    245249 * @return array|bool List of editable authors. False if no editable users.
     
    267271 * @deprecated 3.1.0 Use get_users()
    268272 *
     273 * @global wpdb $wpdb WordPress database abstraction object.
     274 *
    269275 * @param int  $user_id       User ID.
    270276 * @param bool $exclude_zeros Optional. Whether to exclude zeroes. Default true.
     
    303309 *
    304310 * @deprecated 3.1.0 Use get_users()
     311 *
     312 * @global wpdb $wpdb WordPress database abstraction object.
    305313 */
    306314function get_nonauthor_user_ids() {
     
    665673 * @see get_posts()
    666674 *
     675 * @global wpdb $wpdb WordPress database abstraction object.
     676 *
    667677 * @param int    $user_id User ID to not retrieve posts from.
    668678 * @param string $type    Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all).
Note: See TracChangeset for help on using the changeset viewer.