Ticket #33804: 33804_4.diff
File 33804_4.diff, 656 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/network/site-new.php
90 90 $user_id = email_exists($email); 91 91 if ( !$user_id ) { // Create a new user with a random password 92 92 $password = wp_generate_password( 12, false ); 93 $user_id = username_exists($domain); 94 if ( $user_id ) 95 wp_die( __( 'This username is already registered.' ) ); 93 96 $user_id = wpmu_create_user( $domain, $password, $email ); 94 97 if ( false === $user_id ) 95 98 wp_die( __( 'There was an error creating the user.' ) );