From 78fc54ca379ff0492d449b69c9711dc971452939 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 Mar 2018 18:11:56 +0000 Subject: [PATCH] Docs: Clarify that `wp_update_user()` accepts an array as `$userdata` argument. Props nextendweb. Fixes #43051. git-svn-id: https://develop.svn.wordpress.org/trunk@42774 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 66a54cda47..4dad406c7b 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -1852,7 +1852,7 @@ function wp_insert_user( $userdata ) { * * @see wp_insert_user() For what fields can be set in $userdata. * - * @param object|WP_User $userdata An array of user data or a user object of type stdClass or WP_User. + * @param array|object|WP_User $userdata An array of user data or a user object of type stdClass or WP_User. * @return int|WP_Error The updated user's ID or a WP_Error object if the user could not be updated. */ function wp_update_user( $userdata ) {