WordPress.org

Make WordPress Core

Changeset 19189


Ignore:
Timestamp:
11/06/11 20:03:30 (2 years ago)
Author:
nacin
Message:

Add 'for' attributes to labels in wp-login.php for extra accessibility. props ppaire, fixes #19178.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r19124 r19189  
    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> 
     
    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> 
     
    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> 
     
    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" /> 
Note: See TracChangeset for help on using the changeset viewer.