Consolidate some strings. Props pavelevap, SergeyBiryukov. see #21728

git-svn-id: https://develop.svn.wordpress.org/trunk@22124 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-10-05 19:04:34 +00:00
parent b0cae159ea
commit 8d5ca186c2
7 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -1305,7 +1305,7 @@ function wp_insert_user( $userdata ) {
return new WP_Error('empty_user_login', __('Cannot create a user with an empty login name.') );
if ( !$update && username_exists( $user_login ) )
return new WP_Error('existing_user_login', __('This username is already registered.') );
return new WP_Error( 'existing_user_login', __( 'Sorry, that username already exists!' ) );
if ( empty($user_nicename) )
$user_nicename = sanitize_title( $user_login );
@@ -1320,7 +1320,7 @@ function wp_insert_user( $userdata ) {
$user_email = apply_filters('pre_user_email', $user_email);
if ( !$update && ! defined( 'WP_IMPORTING' ) && email_exists($user_email) )
return new WP_Error('existing_user_email', __('This email address is already registered.') );
return new WP_Error( 'existing_user_email', __( 'Sorry, that email address is already used!' ) );
if ( empty($nickname) )
$nickname = $user_login;