WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/11/2020 06:30:58 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696].

See #48303.

File:
1 edited

Legend:

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

    r46823 r47060  
    335335 * @since 3.9.0
    336336 *
    337  * @param int|bool $user_id The user ID (or false) as received from the
    338  *                       determine_current_user filter.
     337 * @param int|bool $user_id The user ID (or false) as received from
     338 *                          the `determine_current_user` filter.
    339339 * @return int|false User ID if validated, false otherwise. If a user ID from
    340340 *                   an earlier filter callback is received, that value is returned.
     
    10941094 *                                                 these roles will not be included in results. Default empty array.
    10951095 * }
    1096  * @return string String of HTML content.
     1096 * @return string HTML dropdown list of users.
    10971097 */
    10981098function wp_dropdown_users( $args = '' ) {
     
    36383638 * @param string $request_id ID of the request being confirmed.
    36393639 * @param string $key        Provided key to validate.
    3640  * @return bool|WP_Error WP_Error on failure, true on success.
     3640 * @return bool|WP_Error True on success, WP_Error on failure.
    36413641 */
    36423642function wp_validate_user_request_key( $request_id, $key ) {
Note: See TracChangeset for help on using the changeset viewer.