Ticket #14290: 14290.diff
File 14290.diff, 568 bytes (added by , 15 years ago) |
---|
-
wp-login.php
306 306 307 307 $user_pass = wp_generate_password(); 308 308 $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 309 if ( ! $user_id) {309 if ( is_wp_error( $user_id ) ) { 310 310 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 311 311 return $errors; 312 312 }