From 8306f943dd46718e318802283d493ff724554222 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 10 Oct 2011 23:14:38 +0000 Subject: [PATCH] Avoid warning when creating new users. fixes #18898 git-svn-id: http://svn.automattic.com/wordpress/trunk@18936 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index ffcef50ef..d2261e59b 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -1354,7 +1354,8 @@ function wp_insert_user($userdata) { $user = new WP_User( $user_id ); foreach ( _get_additional_user_keys( $user ) as $key ) { - update_user_meta( $user_id, $key, $$key ); + if ( isset( $$key ) ) + update_user_meta( $user_id, $key, $$key ); } if ( isset($role) )