Ticket #20332: patch.diff
| File patch.diff, 1.8 KB (added by , 15 years ago) |
|---|
-
wp-includes/ms-functions.php
445 445 $user_email = sanitize_email( $user_email ); 446 446 447 447 if ( empty( $user_name ) ) 448 $errors->add('user_name', __( 'Please enter a username'));448 $errors->add('user_name', __( 'Please enter a username.' ) ); 449 449 450 450 $illegal_names = get_site_option( 'illegal_names' ); 451 451 if ( is_array( $illegal_names ) == false ) { … … 453 453 add_site_option( 'illegal_names', $illegal_names ); 454 454 } 455 455 if ( in_array( $user_name, $illegal_names ) == true ) 456 $errors->add('user_name', __( 'That username is not allowed'));456 $errors->add('user_name', __( 'That username is not allowed.' ) ); 457 457 458 458 if ( is_email_address_unsafe( $user_email ) ) 459 459 $errors->add('user_email', __('You cannot use that email address to signup. We are having problems with them blocking some of our email. Please use another email provider.')); 460 460 461 461 if ( strlen( $user_name ) < 4 ) 462 $errors->add('user_name', __( 'Username must be at least 4 characters'));462 $errors->add('user_name', __( 'Username must be at least 4 characters.' ) ); 463 463 464 464 if ( strpos( ' ' . $user_name, '_' ) != false ) 465 465 $errors->add( 'user_name', __( 'Sorry, usernames may not contain the character “_”!' ) ); … … 471 471 $errors->add('user_name', __('Sorry, usernames must have letters too!')); 472 472 473 473 if ( !is_email( $user_email ) ) 474 $errors->add('user_email', __( 'Please enter a correct email address'));474 $errors->add('user_email', __( 'Please enter a correct email address.' ) ); 475 475 476 476 $limited_email_domains = get_site_option( 'limited_email_domains' ); 477 477 if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false ) {