Make WordPress Core

Changeset 25978


Ignore:
Timestamp:
10/29/2013 02:31:07 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Remove docs suggesting that wp_insert_user() can be used to update an existing user. wp_update_user() should be used instead. fixes #25745.

File:
1 edited

Legend:

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

    r25929 r25978  
    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',
     
    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.
Note: See TracChangeset for help on using the changeset viewer.