Make WordPress Core

Changeset 42774


Ignore:
Timestamp:
03/04/2018 06:11:56 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify that wp_update_user() accepts an array as $userdata argument.

Props nextendweb.
Fixes #43051.

File:
1 edited

Legend:

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

    r42761 r42774  
    18531853 * @see wp_insert_user() For what fields can be set in $userdata.
    18541854 *
    1855  * @param object|WP_User $userdata An array of user data or a user object of type stdClass or WP_User.
     1855 * @param array|object|WP_User $userdata An array of user data or a user object of type stdClass or WP_User.
    18561856 * @return int|WP_Error The updated user's ID or a WP_Error object if the user could not be updated.
    18571857 */
Note: See TracChangeset for help on using the changeset viewer.