Avoid warning when creating new users. fixes #18898

git-svn-id: https://develop.svn.wordpress.org/trunk@18936 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-10-10 23:14:38 +00:00
parent c3c949df19
commit 974795183b
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) )