From 7b7ca428f3d4de224d8b93c6c85a3bcf553b5081 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 Mar 2018 18:12:31 +0000 Subject: [PATCH] Docs: Clarify that `wp_update_user()` accepts an array as `$userdata` argument. Props nextendweb. Fixes #43051. Built from https://develop.svn.wordpress.org/trunk@42774 git-svn-id: http://core.svn.wordpress.org/trunk@42604 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 66a54cda47..4dad406c7b 100644 --- a/wp-includes/user.php +++ b/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 ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 71835f1548..6622cde77a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42773'; +$wp_version = '5.0-alpha-42774'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.