WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49926 r49927  
    450450 * @since 5.6.0
    451451 *
    452  * @param int|bool $input_user User ID if one has been determined, false otherwise.
    453  * @return int|bool The authenticated user ID if successful, false otherwise.
     452 * @param int|false $input_user User ID if one has been determined, false otherwise.
     453 * @return int|false The authenticated user ID if successful, false otherwise.
    454454 */
    455455function wp_validate_application_password( $input_user ) {
     
    516516 * @since 3.9.0
    517517 *
    518  * @param int|bool $user_id The user ID (or false) as received from
    519  *                          the `determine_current_user` filter.
     518 * @param int|false $user_id The user ID (or false) as received from
     519 *                           the `determine_current_user` filter.
    520520 * @return int|false User ID if validated, false otherwise. If a user ID from
    521521 *                   an earlier filter callback is received, that value is returned.
     
    29792979     * @since 3.9.0
    29802980     *
    2981      * @param int|bool $user_id User ID if one has been determined, false otherwise.
     2981     * @param int|false $user_id User ID if one has been determined, false otherwise.
    29822982     */
    29832983    $user_id = apply_filters( 'determine_current_user', false );
     
    38673867 *
    38683868 * @param string $request_id ID of the request created via wp_create_user_request().
    3869  * @return bool|WP_Error True on success, `WP_Error` on failure.
     3869 * @return true|WP_Error True on success, `WP_Error` on failure.
    38703870 */
    38713871function wp_send_user_request( $request_id ) {
     
    40514051 * @param string $request_id ID of the request being confirmed.
    40524052 * @param string $key        Provided key to validate.
    4053  * @return bool|WP_Error True on success, WP_Error on failure.
     4053 * @return true|WP_Error True on success, WP_Error on failure.
    40544054 */
    40554055function wp_validate_user_request_key( $request_id, $key ) {
Note: See TracChangeset for help on using the changeset viewer.