Changeset 22124
- Timestamp:
- 10/05/2012 07:04:34 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r22092 r22124 225 225 if ( $current_user->user_email != $_POST['email'] ) { 226 226 if ( !is_email( $_POST['email'] ) ) { 227 $errors->add( 'user_email', __( "<strong>ERROR</strong>: The e -mail address isn't correct." ), array( 'form-field' => 'email' ) );227 $errors->add( 'user_email', __( "<strong>ERROR</strong>: The email address isn’t correct." ), array( 'form-field' => 'email' ) ); 228 228 return; 229 229 } 230 230 231 231 if ( $wpdb->get_var( $wpdb->prepare( "SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email'] ) ) ) { 232 $errors->add( 'user_email', __( "<strong>ERROR</strong>: The e -mail address is already used." ), array( 'form-field' => 'email' ) );232 $errors->add( 'user_email', __( "<strong>ERROR</strong>: The email address is already used." ), array( 'form-field' => 'email' ) ); 233 233 delete_option( $current_user->ID . '_new_email' ); 234 234 return; -
trunk/wp-admin/includes/user.php
r21798 r22124 145 145 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) ); 146 146 } elseif ( !is_email( $user->user_email ) ) { 147 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The e -mail address isn’t correct.' ), array( 'form-field' => 'email' ) );147 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ), array( 'form-field' => 'email' ) ); 148 148 } elseif ( ( $owner_id = email_exists($user->user_email) ) && ( !$update || ( $owner_id != $user->ID ) ) ) { 149 149 $errors->add( 'email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.'), array( 'form-field' => 'email' ) ); -
trunk/wp-admin/network/site-new.php
r22042 r22124 128 128 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php esc_attr_e( 'Domain' ) ?>"/> 129 129 <?php } 130 echo '<p>' . __( 'Only the characters a-z and 0-9 recommended.' ) . '</p>';130 echo '<p>' . __( 'Only lowercase letters (a-z) and numbers are allowed.' ) . '</p>'; 131 131 ?> 132 132 </td> -
trunk/wp-admin/setup-config.php
r21873 r22124 166 166 $$key = trim( stripslashes( $_POST[ $key ] ) ); 167 167 168 $tryagain_link = '</p><p class="step"><a href="setup-config.php?step=1" onclick="javascript:history.go(-1);return false;" class="button">' . __( 'Try Again' ) . '</a>';168 $tryagain_link = '</p><p class="step"><a href="setup-config.php?step=1" onclick="javascript:history.go(-1);return false;" class="button">' . __( 'Try again' ) . '</a>'; 169 169 170 170 if ( empty( $prefix ) ) -
trunk/wp-includes/ms-functions.php
r22121 r22124 183 183 if ( ! $user ) { 184 184 restore_current_blog(); 185 return new WP_Error( 'user_does_not_exist', __('That user does not exist.'));185 return new WP_Error( 'user_does_not_exist', __( 'The requested user does not exist.' ) ); 186 186 } 187 187 … … 463 463 464 464 if ( !is_email( $user_email ) ) 465 $errors->add('user_email', __( 'Please enter a correctemail address.' ) );465 $errors->add('user_email', __( 'Please enter a valid email address.' ) ); 466 466 467 467 $limited_email_domains = get_site_option( 'limited_email_domains' ); … … 474 474 // Check if the username has been used already. 475 475 if ( username_exists($user_name) ) 476 $errors->add( 'user_name', __('Sorry, that username already exists!'));476 $errors->add( 'user_name', __( 'Sorry, that username already exists!' ) ); 477 477 478 478 // Check if the email address has been used already. 479 479 if ( email_exists($user_email) ) 480 $errors->add( 'user_email', __('Sorry, that email address is already used!'));480 $errors->add( 'user_email', __( 'Sorry, that email address is already used!' ) ); 481 481 482 482 // Has someone already signed up for this username? … … 554 554 555 555 if ( preg_match( '/[^a-z0-9]+/', $blogname ) ) 556 $errors->add('blogname', __( 'Only lowercase letters and numbersallowed.' ) );556 $errors->add('blogname', __( 'Only lowercase letters (a-z) and numbers are allowed.' ) ); 557 557 558 558 if ( in_array( $blogname, $illegal_names ) == true ) … … 591 591 } 592 592 if ( domain_exists($mydomain, $path, $current_site->id) ) 593 $errors->add( 'blogname', __('Sorry, that site already exists!'));593 $errors->add( 'blogname', __( 'Sorry, that site already exists!' ) ); 594 594 595 595 if ( username_exists( $blogname ) ) { … … 957 957 // Check if the domain has been used already. We should return an error message. 958 958 if ( domain_exists($domain, $path, $site_id) ) 959 return new WP_Error( 'blog_taken', __('Site already exists.'));959 return new WP_Error( 'blog_taken', __( 'Sorry, that site already exists!' ) ); 960 960 961 961 if ( !defined('WP_INSTALLING') ) … … 1630 1630 1631 1631 if ( wp_create_nonce('signup_form_' . $_POST[ 'signup_form_id' ]) != $_POST['_signup_form'] ) 1632 wp_die( __( 'Please try again!') );1632 wp_die( __( 'Please try again.' ) ); 1633 1633 1634 1634 return $result; -
trunk/wp-includes/user.php
r21995 r22124 1306 1306 1307 1307 if ( !$update && username_exists( $user_login ) ) 1308 return new WP_Error( 'existing_user_login', __('This username is already registered.') );1308 return new WP_Error( 'existing_user_login', __( 'Sorry, that username already exists!' ) ); 1309 1309 1310 1310 if ( empty($user_nicename) ) … … 1321 1321 1322 1322 if ( !$update && ! defined( 'WP_IMPORTING' ) && email_exists($user_email) ) 1323 return new WP_Error( 'existing_user_email', __('This email address is already registered.') );1323 return new WP_Error( 'existing_user_email', __( 'Sorry, that email address is already used!' ) ); 1324 1324 1325 1325 if ( empty($nickname) ) -
trunk/wp-login.php
r22000 r22124 316 316 $sanitized_user_login = ''; 317 317 } elseif ( username_exists( $sanitized_user_login ) ) { 318 $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered , please choose another one.' ) );318 $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ) ); 319 319 } 320 320
Note: See TracChangeset
for help on using the changeset viewer.