]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/user.php
WordPress 3.5.1
[autoinstalls/wordpress.git] / wp-includes / user.php
index 7bdc37cc76f51b576284f125dc3c7e9140dcf416..bfc82f3349f8d3b29633e46399745030344f17d8 100644 (file)
@@ -1452,6 +1452,8 @@ function wp_update_user($userdata) {
 
        // 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();