Avoid warning when creating new users. fixes #18898

git-svn-id: http://svn.automattic.com/wordpress/trunk@18936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-10-10 23:14:38 +00:00
parent 9821dca874
commit 8306f943dd
1 changed files with 2 additions and 1 deletions

View File

@ -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) )