Make WordPress Core

Ticket #57843: wp_update_user.2.patch

File wp_update_user.2.patch, 1.6 KB (added by tanner m, 9 months ago)

Update typo in original doc block.

  • wp-includes/user.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/user.php b/wp-includes/user.php
    a b  
    18611861 *     An array, object, or WP_User object of user data arguments.
    18621862 *
    18631863 *     @type int    $ID                   User ID. If supplied, the user will be updated.
    1864  *     @type string $user_pass            The plain-text user password.
     1864 *     @type string $user_pass            The plain-text user password for new users.
     1865 *                                        Hashed password for existing users.
    18651866 *     @type string $user_login           The user's login username.
    18661867 *     @type string $user_nicename        The URL-friendly user name.
    18671868 *     @type string $user_url             The user URL.
     
    23422343                $userdata = $userdata->to_array();
    23432344        }
    23442345
     2346        $userdata_raw = $userdata;
     2347
    23452348        $user_id = isset( $userdata['ID'] ) ? (int) $userdata['ID'] : 0;
    23462349        if ( ! $user_id ) {
    23472350                return new WP_Error( 'invalid_user_id', __( 'Invalid user ID.' ) );
     
    25562559                }
    25572560        }
    25582561
     2562        /**
     2563         * Fires after the user has been updated and emails have been sent.
     2564         *
     2565         * @param int   $user_id      The ID of the user that was just updated.
     2566         * @param array $userdata     The array of user data that was updated.
     2567         * @param array $userdata_raw The unedited array of user data that was updated.
     2568         *
     2569         * @since 6.2.0
     2570         */
     2571        do_action( 'wp_update_user', $user_id, $userdata, $userdata_raw );
     2572
    25592573        return $user_id;
    25602574}
    25612575