Make WordPress Core

Ticket #25745: 25745.patch

File 25745.patch, 1.1 KB (added by SergeyBiryukov, 10 years ago)
  • src/wp-includes/user.php

     
    12581258/**
    12591259 * Insert an user into the database.
    12601260 *
    1261  * Can update a current user or insert a new user based on whether the user's ID
    1262  * is present.
    1263  *
    1264  * Can be used to update the user's info (see below), set the user's role, and
    1265  * set the user's preference on whether they want the rich editor on.
    1266  *
    12671261 * Most of the $userdata array fields have filters associated with the values.
    12681262 * The exceptions are 'rich_editing', 'role', 'jabber', 'aim', 'yim',
    12691263 * 'user_registered', and 'ID'. The filters have the prefix 'pre_user_' followed
     
    14561450 *
    14571451 * @since 2.0.0
    14581452 * @see wp_insert_user() For what fields can be set in $userdata
    1459  * @uses wp_insert_user() Used to update existing user or add new one if user doesn't exist already
    14601453 *
    14611454 * @param mixed $userdata An array of user data or a user object of type stdClass or WP_User.
    14621455 * @return int|WP_Error The updated user's ID or a WP_Error object if the user could not be updated.