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