diff --git wp-admin/network/site-new.php wp-admin/network/site-new.php
index 5876037..5143874 100644
|
|
if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { |
88 | 88 | |
89 | 89 | $password = 'N/A'; |
90 | 90 | $user_id = email_exists($email); |
91 | | if ( !$user_id ) { // Create a new user with a random password |
| 91 | $user_name_id = username_exists($email); |
| 92 | if ( !$user_id && !$user_name_id ) { // Create a new user with a random password |
92 | 93 | $password = wp_generate_password( 12, false ); |
93 | 94 | $user_id = wpmu_create_user( $domain, $password, $email ); |
94 | 95 | if ( false === $user_id ) |