diff --git a/src/wp-login.php b/src/wp-login.php
index 1e1ba5cc6a..8940d67f51 100644
|
a
|
b
|
switch ( $action ) { |
| 836 | 836 | <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> |
| 837 | 837 | <p> |
| 838 | 838 | <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label> |
| 839 | | <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /> |
| | 839 | <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" required /> |
| 840 | 840 | </p> |
| 841 | 841 | <?php |
| 842 | 842 | |
| … |
… |
switch ( $action ) { |
| 950 | 950 | </p> |
| 951 | 951 | |
| 952 | 952 | <div class="wp-pwd"> |
| 953 | | <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" /> |
| | 953 | <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" required /> |
| 954 | 954 | |
| 955 | 955 | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> |
| 956 | 956 | <span class="dashicons dashicons-hidden" aria-hidden="true"></span> |
| … |
… |
switch ( $action ) { |
| 965 | 965 | |
| 966 | 966 | <p class="user-pass2-wrap"> |
| 967 | 967 | <label for="pass2"><?php _e( 'Confirm new password' ); ?></label> |
| 968 | | <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /> |
| | 968 | <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" required /> |
| 969 | 969 | </p> |
| 970 | 970 | |
| 971 | 971 | <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> |
| … |
… |
switch ( $action ) { |
| 1065 | 1065 | <form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate"> |
| 1066 | 1066 | <p> |
| 1067 | 1067 | <label for="user_login"><?php _e( 'Username' ); ?></label> |
| 1068 | | <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" /> |
| | 1068 | <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" required /> |
| 1069 | 1069 | </p> |
| 1070 | 1070 | <p> |
| 1071 | 1071 | <label for="user_email"><?php _e( 'Email' ); ?></label> |
| 1072 | | <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /> |
| | 1072 | <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" required /> |
| 1073 | 1073 | </p> |
| 1074 | 1074 | <?php |
| 1075 | 1075 | |
| … |
… |
switch ( $action ) { |
| 1341 | 1341 | <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> |
| 1342 | 1342 | <p> |
| 1343 | 1343 | <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label> |
| 1344 | | <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" /> |
| | 1344 | <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" required /> |
| 1345 | 1345 | </p> |
| 1346 | 1346 | |
| 1347 | 1347 | <div class="user-pass-wrap"> |
| 1348 | 1348 | <label for="user_pass"><?php _e( 'Password' ); ?></label> |
| 1349 | 1349 | <div class="wp-pwd"> |
| 1350 | | <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" /> |
| | 1350 | <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" required /> |
| 1351 | 1351 | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>"> |
| 1352 | 1352 | <span class="dashicons dashicons-visibility" aria-hidden="true"></span> |
| 1353 | 1353 | </button> |