Ticket #33804: 33804_1.diff
File 33804_1.diff, 663 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_name_id = username_exists($domain); 94 if ( $user_name_id ) { 95 wp_die( __( 'Username already existed.' ) ); 96 } 93 97 $user_id = wpmu_create_user( $domain, $password, $email ); 94 98 if ( false === $user_id ) 95 99 wp_die( __( 'There was an error creating the user.' ) );