From 17f544b7987e122cf4c7825a80d717582c54509a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 14 Aug 2012 19:29:40 +0000 Subject: [PATCH] Update wp_update_user() phpdoc to reflect a possible return of WP_Error. Props SergeyBiryukov. fixes #21439 git-svn-id: http://core.svn.wordpress.org/trunk@21509 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 1c7fca9af5..7087157a99 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -1393,7 +1393,7 @@ function wp_insert_user( $userdata ) { * @uses wp_insert_user() Used to update existing user or add new one if user doesn't exist already * * @param mixed $userdata An array of user data or a user object of type stdClass or WP_User. - * @return int The updated user's ID. + * @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) { if ( is_a( $userdata, 'stdClass' ) )