WordPress.org

Make WordPress Core

Changeset 20441


Ignore:
Timestamp:
04/11/12 20:41:59 (2 years ago)
Author:
ryan
Message:

Add terminal punctuation to some signup error messages. Props dllh. fixes #20332

File:
1 edited

Legend:

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

    r20378 r20441  
    446446 
    447447    if ( empty( $user_name ) ) 
    448         $errors->add('user_name', __('Please enter a username')); 
     448        $errors->add('user_name', __( 'Please enter a username.' ) ); 
    449449 
    450450    $illegal_names = get_site_option( 'illegal_names' ); 
     
    454454    } 
    455455    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.' ) ); 
    457457 
    458458    if ( is_email_address_unsafe( $user_email ) ) 
     
    460460 
    461461    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.' ) ); 
    463463 
    464464    if ( strpos( ' ' . $user_name, '_' ) != false ) 
     
    472472 
    473473    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.' ) ); 
    475475 
    476476    $limited_email_domains = get_site_option( 'limited_email_domains' ); 
     
    560560 
    561561    if ( empty( $blogname ) ) 
    562         $errors->add('blogname', __('Please enter a site name')); 
     562        $errors->add('blogname', __( 'Please enter a site name.' ) ); 
    563563 
    564564    if ( preg_match( '/[^a-z0-9]+/', $blogname ) ) 
    565         $errors->add('blogname', __('Only lowercase letters and numbers allowed')); 
     565        $errors->add('blogname', __( 'Only lowercase letters and numbers allowed.' ) ); 
    566566 
    567567    if ( in_array( $blogname, $illegal_names ) == true ) 
    568         $errors->add('blogname',  __('That name is not allowed')); 
     568        $errors->add('blogname',  __( 'That name is not allowed.' ) ); 
    569569 
    570570    if ( strlen( $blogname ) < 4 && !is_super_admin() ) 
    571         $errors->add('blogname',  __('Site name must be at least 4 characters')); 
     571        $errors->add('blogname',  __( 'Site name must be at least 4 characters.' ) ); 
    572572 
    573573    if ( strpos( ' ' . $blogname, '_' ) != false ) 
     
    589589 
    590590    if ( empty( $blog_title ) ) 
    591         $errors->add('blog_title', __('Please enter a site title')); 
     591        $errors->add('blog_title', __( 'Please enter a site title.' ) ); 
    592592 
    593593    // Check if the domain/path has been used already. 
Note: See TracChangeset for help on using the changeset viewer.