Changeset 25174
- Timestamp:
- 08/29/2013 10:15:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r25045 r25174 354 354 $user_pass = wp_generate_password( 12, false); 355 355 $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 356 if ( ! $user_id ) {356 if ( ! $user_id || is_wp_error( $user_id ) ) { 357 357 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you… please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 358 358 return $errors;
Note: See TracChangeset
for help on using the changeset viewer.