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:
parent
9821dca874
commit
8306f943dd
|
@ -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) )
|
||||
|
|
Loading…
Reference in New Issue