Make WordPress Core

Changeset 2437 for trunk/wp-register.php


Ignore:
Timestamp:
03/13/2005 05:06:18 PM (20 years ago)
Author:
ryan
Message:

Change login noun to Username. http://mosquito.wordpress.org/view.php?id=1088 Props: Albert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-register.php

    r2321 r2437  
    2929    $user_email = $_POST['user_email'];
    3030       
    31     /* checking login has been typed */
     31    /* checking that username has been typed */
    3232    if ($user_login == '') {
    33         die (__('<strong>ERROR</strong>: Please enter a login.'));
     33        die (__('<strong>ERROR</strong>: Please enter a username.'));
    3434    }
    3535
     
    4141    }
    4242
    43     /* checking the login isn't already used by another user */
     43    /* checking the username isn't already used by another user */
    4444    $result = $wpdb->get_results("SELECT user_login FROM $wpdb->users WHERE user_login = '$user_login'");
    4545    if (count($result) >= 1) {
    46         die (__('<strong>ERROR</strong>: This login is already registered, please choose another one.'));
     46        die (__('<strong>ERROR</strong>: This username is already registered, please choose another one.'));
    4747    }
    4848
     
    7474    }
    7575   
    76     $message  = __('Login') . ": $user_login\r\n";
    77     $message .= __('Password') . ": $password\r\n";
     76    $message  = sprintf(__('Username: %s'), $user_login) . "\r\n";
     77    $message .= sprintf(__('Password: %s'), $password) . "\r\n";
    7878    $message .= get_settings('siteurl') . '/wp-login.php';
    7979   
    80     wp_mail($user_email, sprintf(__("[%s] Your login information"), get_settings('blogname')), $message);
     80    wp_mail($user_email, sprintf(__("[%s] Your username and password"), get_settings('blogname')), $message);
    8181
    82     $message  = sprintf(__("New user registration on your blog %1\$s:\n\nLogin: %2\$s \n\nE-mail: %3\$s"), get_settings('blogname'), $user_login, $user_email);
     82    $message  = sprintf(__("New user registration on your blog %1\$s:\n\nUsername: %2\$s \n\nE-mail: %3\$s"), get_settings('blogname'), $user_login, $user_email);
    8383
    8484    @wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message);
     
    101101<div id="login">
    102102    <h2><?php _e('Registration Complete') ?></h2>
    103     <p><?php _e('Login:') ?> <strong><?php echo $user_login; ?></strong><br />
    104     <?php _e('Password:') ?> <strong>emailed to you</strong><br />
    105     <?php _e('E-mail:') ?> <strong><?php echo $user_email; ?></strong></p>
     103    <p><?php printf(__('Username: %s'), "<strong>$user_login</strong>") ?><br />
     104    <?php printf(__('Password: %s'), '<strong>' . __('emailed to you') . '</strong>') ?> <br />
     105    <?php printf(__('E-mail: %s'), "<strong>$user_email</strong>") ?></p>
    106106    <p class="submit"><a href="wp-login.php"><?php _e('Login'); ?> &raquo;</a></p>
    107107</div>
     
    161161<form method="post" action="wp-register.php" id="registerform">
    162162    <p><input type="hidden" name="action" value="register" />
    163     <label for="user_login"><?php _e('Login:') ?></label><br /> <input type="text" name="user_login" id="user_login" size="20" maxlength="20" /><br /></p>
    164     <p><label for="user_email"><?php _e('E-mail') ?></label>:<br /> <input type="text" name="user_email" id="user_email" size="25" maxlength="100" /></p>
     163    <label for="user_login"><?php _e('Username:') ?></label><br /> <input type="text" name="user_login" id="user_login" size="20" maxlength="20" /><br /></p>
     164    <p><label for="user_email"><?php _e('E-mail:') ?></label><br /> <input type="text" name="user_email" id="user_email" size="25" maxlength="100" /></p>
    165165    <p>A password will be emailed to you.</p>
    166166    <p class="submit"><input type="submit" value="<?php _e('Register') ?> &raquo;" id="submit" name="submit" /></p>
Note: See TracChangeset for help on using the changeset viewer.