mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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) )
|
||||
|
||||
Reference in New Issue
Block a user