WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/05/2012 07:04:34 PM (8 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r22092 r22124  
    225225    if ( $current_user->user_email != $_POST['email'] ) {
    226226        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&#8217;t correct." ), array( 'form-field' => 'email' ) );
    228228            return;
    229229        }
    230230
    231231        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' ) );
    233233            delete_option( $current_user->ID . '_new_email' );
    234234            return;
Note: See TracChangeset for help on using the changeset viewer.