Ticket #13324: 13324.2.diff
File 13324.2.diff, 4.1 KB (added by , 14 years ago) |
---|
-
wp-login.php
231 231 return new WP_Error('invalid_key', __('Invalid key')); 232 232 233 233 // Generate something random for a password... 234 $new_pass = wp_generate_password( );234 $new_pass = wp_generate_password(12,false); 235 235 236 236 do_action('password_reset', $user, $new_pass); 237 237 … … 301 301 if ( $errors->get_error_code() ) 302 302 return $errors; 303 303 304 $user_pass = wp_generate_password( );304 $user_pass = wp_generate_password(12,false); 305 305 $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 306 306 if ( ! $user_id ) { 307 307 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); -
wp-includes/ms-functions.php
727 727 $user_login = $wpdb->escape($signup->user_login); 728 728 $user_email = $wpdb->escape($signup->user_email); 729 729 wpmu_validate_user_signup($user_login, $user_email); 730 $password = wp_generate_password( );730 $password = wp_generate_password(12,false); 731 731 732 732 $user_id = username_exists($user_login); 733 733 -
wp-admin/ms-edit.php
173 173 $password = 'N/A'; 174 174 $user_id = email_exists($email); 175 175 if ( !$user_id ) { // Create a new user with a random password 176 $password = wp_generate_password( );176 $password = wp_generate_password(12,false); 177 177 $user_id = wpmu_create_user( $domain, $password, $email ); 178 178 if ( false == $user_id ) 179 179 wp_die( __( 'There was an error creating the user.' ) ); … … 604 604 elseif ( empty($user['email']) ) 605 605 wp_die( __( 'Missing email.' ) ); 606 606 607 $password = wp_generate_password( );607 $password = wp_generate_password(12,false); 608 608 $user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) ); 609 609 610 610 if ( false == $user_id ) -
wp-admin/includes/upgrade.php
64 64 $user_password = trim($user_password); 65 65 $email_password = false; 66 66 if ( !$user_id && empty($user_password) ) { 67 $user_password = wp_generate_password( );67 $user_password = wp_generate_password(12,false); 68 68 $message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.'); 69 69 $user_id = wp_create_user($user_name, $user_password, $user_email); 70 70 update_user_option($user_id, 'default_password_nag', true, true); -
wp-admin/import/mt.php
103 103 //function to check the authorname and do the mapping 104 104 function checkauthor($author) { 105 105 //mtnames is an array with the names in the mt import file 106 $pass = wp_generate_password( );106 $pass = wp_generate_password(12,false); 107 107 if (!(in_array($author, $this->mtnames))) { //a new mt author name is found 108 108 ++ $this->j; 109 109 $this->mtnames[$this->j] = $author; //add that new mt author name to an array -
wp-admin/import/wordpress.php
186 186 187 187 $user_id = username_exists($new_author_name); 188 188 if ( !$user_id ) { 189 $user_id = wp_create_user($new_author_name, wp_generate_password( ));189 $user_id = wp_create_user($new_author_name, wp_generate_password(12,false)); 190 190 } 191 191 192 192 if ( !is_wp_error( $user_id ) ) {