WordPress.org

Make WordPress Core

Changeset 38477


Ignore:
Timestamp:
08/31/2016 06:50:34 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Login and Registration: Change login label to Username or Email Address for clarity.

Props GaryJ.
Fixes #37871.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r38470 r38477  
    384384 *                                  Default is to redirect back to the request URI.
    385385 *     @type string $form_id        ID attribute value for the form. Default 'loginform'.
    386  *     @type string $label_username Label for the username or email address field. Default 'Username or Email'.
     386 *     @type string $label_username Label for the username or email address field. Default 'Username or Email Address'.
    387387 *     @type string $label_password Label for the password field. Default 'Password'.
    388388 *     @type string $label_remember Label for the remember field. Default 'Remember Me'.
     
    406406        'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
    407407        'form_id' => 'loginform',
    408         'label_username' => __( 'Username or Email' ),
     408        'label_username' => __( 'Username or Email Address' ),
    409409        'label_password' => __( 'Password' ),
    410410        'label_remember' => __( 'Remember Me' ),
  • trunk/src/wp-login.php

    r38458 r38477  
    537537<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    538538    <p>
    539         <label for="user_login" ><?php _e('Username or Email') ?><br />
     539        <label for="user_login" ><?php _e( 'Username or Email Address' ); ?><br />
    540540        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
    541541    </p>
     
    899899<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    900900    <p>
    901         <label for="user_login"><?php _e('Username or Email') ?><br />
     901        <label for="user_login"><?php _e( 'Username or Email Address' ); ?><br />
    902902        <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" /></label>
    903903    </p>
    904904    <p>
    905         <label for="user_pass"><?php _e('Password') ?><br />
     905        <label for="user_pass"><?php _e( 'Password' ); ?><br />
    906906        <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input" value="" size="20" /></label>
    907907    </p>
Note: See TracChangeset for help on using the changeset viewer.