protected function _updateObject( $user_id, $fields ) {
		$fields['ID'] = $user_id;
		$updated = wp_update_user( $fields );
		if ( $updated && ! is_wp_error( $updated ) ) {
			$this->_debug( 'Updated user ' . $user_id );
		} elseif ( is_wp_error( $updated ) ) {
			$this->_debug(
				'Update failed for user %d with message [%s] %s',
				$user_id,
				$updated->get_error_code(),
				$updated->get_error_message()
			);
		} else {
			$this->_debug( 'Update failed for user ' . $user_id );
		}

		return $updated;
	}
protected function _updateObject( $user_id, $fields ) {
		$fields['ID'] = $user_id;
		$updated = wp_update_user( $fields );
		if ( $updated && ! is_wp_error( $updated ) ) {
			$this->_debug( 'Updated user ' . $user_id );
		} elseif ( is_wp_error( $updated ) ) {
			$this->_debug(
				'Update failed for user %d with message [%s] %s',
				$user_id,
				$updated->get_error_code(),
				$updated->get_error_message()
			);
		} else {
			$this->_debug( 'Update failed for user ' . $user_id );
		}

		return $updated;
	}
protected function _updateObject ( $ user_id , $ fields ) { $ fields [ 'ID' ] = $ user_id ; $ updated = wp_update_user ( $ fields ) ; if ( $ updated && ! is_wp_error ( $ updated ) ) { $ this -> _debug ( 'Updated user ' . $ user_id ) ; } elseif ( is_wp_error ( $ updated ) ) { $ this -> _debug ( 'Update failed for user %d with message [%s] %s' , $ user_id , $ updated -> get_error_code ( ) , $ updated -> get_error_message ( ) ) ; } else { $ this -> _debug ( 'Update failed for user ' . $ user_id ) ; } return $ updated ; }
Updates generated user.

@since 1.0.0

@access protected
@param mixed $user_id The user id to update.
@param array $fields The array of fields to update.
@return mixed Updated user ID on success, otherwise a WP_Error object.
Updates generated user .