Make WordPress Core

Ticket #40945: 40945.patch

File 40945.patch, 2.8 KB (added by sebastian.pisula, 8 years ago)
  • wp-includes/user.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    931931 *
    932932 * @since 2.0.4
    933933 *
    934  * @global string $user_login    The user username for logging in
    935  * @global object $userdata      User data.
    936  * @global int    $user_level    The level of the user
    937  * @global int    $user_ID       The ID of the user
    938  * @global string $user_email    The email address of the user
    939  * @global string $user_url      The url in the user's profile
    940  * @global string $user_identity The display name of the user
     934 * @global string  $user_login    The user username for logging in
     935 * @global WP_User $userdata      User data.
     936 * @global int     $user_level    The level of the user
     937 * @global int     $user_ID       The ID of the user
     938 * @global string  $user_email    The email address of the user
     939 * @global string  $user_url      The url in the user's profile
     940 * @global string  $user_identity The display name of the user
    941941 *
    942942 * @param int $for_user_id Optional. User ID to set up global data.
    943943 */
     
    12531253 *
    12541254 * @since 3.0.0
    12551255 *
    1256  * @param object|WP_User $user User object to be cached
     1256 * @param WP_User $user User object to be cached
    12571257 * @return bool|null Returns false on failure.
    12581258 */
    12591259function update_user_caches( $user ) {
     
    17021702                 *
    17031703                 * @since 2.0.0
    17041704                 *
    1705                  * @param int    $user_id       User ID.
    1706                  * @param object $old_user_data Object containing user's data prior to update.
     1705                 * @param int     $user_id       User ID.
     1706                 * @param WP_User $old_user_data Object containing user's data prior to update.
    17071707                 */
    17081708                do_action( 'profile_update', $user_id, $old_user_data );
    17091709        } else {
     
    17331733 *
    17341734 * @see wp_insert_user() For what fields can be set in $userdata.
    17351735 *
    1736  * @param mixed $userdata An array of user data or a user object of type stdClass or WP_User.
     1736 * @param object|WP_User $userdata An array of user data or a user object of type stdClass or WP_User.
    17371737 * @return int|WP_Error The updated user's ID or a WP_Error object if the user could not be updated.
    17381738 */
    17391739function wp_update_user($userdata) {
     
    22362236 *
    22372237 * @since 2.5.0
    22382238 *
    2239  * @param object $user     The user
     2239 * @param WP_User $user     The user
    22402240 * @param string $new_pass New password for the user in plaintext
    22412241 */
    22422242function reset_password( $user, $new_pass ) {
     
    22582258         *
    22592259         * @since 4.4.0
    22602260         *
    2261          * @param object $user     The user.
    2262          * @param string $new_pass New user password.
     2261         * @param WP_User $user     The user.
     2262         * @param string  $new_pass New user password.
    22632263         */
    22642264        do_action( 'after_password_reset', $user, $new_pass );
    22652265}