Ticket #20332: patch.diff

File patch.diff, 1.8 KB (added by dllh, 14 months ago)
Line 
1Index: wp-includes/ms-functions.php
2===================================================================
3--- wp-includes/ms-functions.php        (revision 20327)
4+++ wp-includes/ms-functions.php        (working copy)
5@@ -445,7 +445,7 @@
6        $user_email = sanitize_email( $user_email );
7 
8        if ( empty( $user_name ) )
9-               $errors->add('user_name', __('Please enter a username'));
10+               $errors->add('user_name', __( 'Please enter a username.' ) );
11 
12        $illegal_names = get_site_option( 'illegal_names' );
13        if ( is_array( $illegal_names ) == false ) {
14@@ -453,13 +453,13 @@
15                add_site_option( 'illegal_names', $illegal_names );
16        }
17        if ( in_array( $user_name, $illegal_names ) == true )
18-               $errors->add('user_name',  __('That username is not allowed'));
19+               $errors->add('user_name',  __( 'That username is not allowed.' ) );
20 
21        if ( is_email_address_unsafe( $user_email ) )
22                $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.'));
23 
24        if ( strlen( $user_name ) < 4 )
25-               $errors->add('user_name',  __('Username must be at least 4 characters'));
26+               $errors->add('user_name',  __( 'Username must be at least 4 characters.' ) );
27 
28        if ( strpos( ' ' . $user_name, '_' ) != false )
29                $errors->add( 'user_name', __( 'Sorry, usernames may not contain the character &#8220;_&#8221;!' ) );
30@@ -471,7 +471,7 @@
31                $errors->add('user_name', __('Sorry, usernames must have letters too!'));
32 
33        if ( !is_email( $user_email ) )
34-               $errors->add('user_email', __('Please enter a correct email address'));
35+               $errors->add('user_email', __( 'Please enter a correct email address.' ) );
36 
37        $limited_email_domains = get_site_option( 'limited_email_domains' );
38        if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false ) {