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:
parent
c3c949df19
commit
974795183b
@ -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
Block a user