WordPress.org

Make WordPress Core

Ticket #19178: wp-login.php.patch

File wp-login.php.patch, 3.2 KB (added by ppaire, 7 years ago)

Updated wp-login.php that includes the label with associated for's

  • wp-login.php

     
    402402
    403403<form name="lostpasswordform" id="lostpasswordform" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" method="post">
    404404        <p>
    405                 <label><?php _e('Username or E-mail:') ?><br />
     405                <label for="user_login" ><?php _e('Username or E-mail:') ?><br />
    406406                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    407407        </p>
    408408<?php do_action('lostpassword_form'); ?>
     
    451451        <input type="hidden" id="user_login" value="<?php echo esc_attr( $_GET['login'] ); ?>" autocomplete="off" />
    452452
    453453        <p>
    454                 <label><?php _e('New password') ?><br />
     454                <label for="pass1"><?php _e('New password') ?><br />
    455455                <input type="password" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" /></label>
    456456        </p>
    457457        <p>
    458                 <label><?php _e('Confirm new password') ?><br />
     458                <label for="pass2"><?php _e('Confirm new password') ?><br />
    459459                <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /></label>
    460460        </p>
    461461
     
    508508
    509509<form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
    510510        <p>
    511                 <label><?php _e('Username') ?><br />
     511                <label for="user_login"><?php _e('Username') ?><br />
    512512                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
    513513        </p>
    514514        <p>
    515                 <label><?php _e('E-mail') ?><br />
     515                <label for="user_email"><?php _e('E-mail') ?><br />
    516516                <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
    517517        </p>
    518518<?php do_action('register_form'); ?>
     
    628628
    629629<form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post">
    630630        <p>
    631                 <label><?php _e('Username') ?><br />
     631                <label for="user_login"><?php _e('Username') ?><br />
    632632                <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    633633        </p>
    634634        <p>
    635                 <label><?php _e('Password') ?><br />
     635                <label for="user_pass"><?php _e('Password') ?><br />
    636636                <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
    637637        </p>
    638638<?php do_action('login_form'); ?>
    639         <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
     639        <p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
    640640        <p class="submit">
    641641                <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Log In'); ?>" tabindex="100" />
    642642<?php   if ( $interim_login ) { ?>