Make WordPress Core

Changeset 42406


Ignore:
Timestamp:
12/16/2017 01:40:31 PM (7 years ago)
Author:
johnbillion
Message:

Login and Registration: Instruct the browser to disable autocapitalisation for the user login field on the login screen.

Props drywallbmb
Fixes #42886

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r42343 r42406  
    604604    <p>
    605605        <label for="user_login" ><?php _e( 'Username or Email Address' ); ?><br />
    606         <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" /></label>
     606        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /></label>
    607607    </p>
    608608    <?php
     
    824824    <p>
    825825        <label for="user_login"><?php _e( 'Username' ); ?><br />
    826         <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" /></label>
     826        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" /></label>
    827827    </p>
    828828    <p>
     
    10261026    <p>
    10271027        <label for="user_login"><?php _e( 'Username or Email Address' ); ?><br />
    1028         <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>
     1028        <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /></label>
    10291029    </p>
    10301030    <p>
Note: See TracChangeset for help on using the changeset viewer.