Make WordPress Core

Ticket #38606: 38606.patch

File 38606.patch, 3.8 KB (added by ramiy, 10 years ago)
  • wp-login.php

     
    532532<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    533533        <p>
    534534                <label for="user_login" ><?php _e( 'Username or Email Address' ); ?><br />
    535                 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
     535                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" aria-required="true" /></label>
    536536        </p>
    537537        <?php
    538538        /**
    … …  
    630630
    631631                <div class="wp-pwd">
    632632                        <span class="password-input-wrapper">
    633                                 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
     633                                <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" aria-required="true" />
    634634                        </span>
    635635                        <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
    636636                </div>
    … …  
    638638
    639639        <p class="user-pass2-wrap">
    640640                <label for="pass2"><?php _e( 'Confirm new password' ) ?></label><br />
    641                 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" />
     641                <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" aria-required="true" />
    642642        </p>
    643643
    644644        <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
    … …  
    719719<form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
    720720        <p>
    721721                <label for="user_login"><?php _e('Username') ?><br />
    722                 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
     722                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" aria-required="true" /></label>
    723723        </p>
    724724        <p>
    725725                <label for="user_email"><?php _e('Email') ?><br />
    726                 <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /></label>
     726                <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" aria-required="true" /></label>
    727727        </p>
    728728        <?php
    729729        /**
    … …  
    894894<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    895895        <p>
    896896                <label for="user_login"><?php _e( 'Username or Email Address' ); ?><br />
    897                 <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>
     897                <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" aria-required="true" /></label>
    898898        </p>
    899899        <p>
    900900                <label for="user_pass"><?php _e( 'Password' ); ?><br />
    901                 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input" value="" size="20" /></label>
     901                <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input" value="" size="20" aria-required="true" /></label>
    902902        </p>
    903903        <?php
    904904        /**