scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 3.5.1
[autoinstalls/wordpress.git]
/
wp-includes
/
user.php
diff --git
a/wp-includes/user.php
b/wp-includes/user.php
index 7bdc37cc76f51b576284f125dc3c7e9140dcf416..bfc82f3349f8d3b29633e46399745030344f17d8 100644
(file)
--- a/
wp-includes/user.php
+++ b/
wp-includes/user.php
@@
-1452,6
+1452,8
@@
function wp_update_user($userdata) {
// First, get all of the original fields
$user_obj = get_userdata( $ID );
// First, get all of the original fields
$user_obj = get_userdata( $ID );
+ if ( ! $user_obj )
+ return new WP_Error( 'invalid_user_id', __( 'Invalid user ID' ) );
$user = $user_obj->to_array();
$user = $user_obj->to_array();