Make WordPress Core

Ticket #32510: 32510.1.diff

File 32510.1.diff, 4.3 KB (added by sabernhardt, 5 years ago)

refresh for spacing and attribute values

  • src/wp-login.php

     
    871871                <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    872872                        <p>
    873873                                <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
    874                                 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" />
     874                                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" required="required" />
    875875                        </p>
    876876                        <?php
    877877
     
    985985                                </p>
    986986
    987987                                <div class="wp-pwd">
    988                                         <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" />
     988                                        <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="required" />
    989989
    990990                                        <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' ); ?>">
    991991                                                <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
     
    10001000
    10011001                        <p class="user-pass2-wrap">
    10021002                                <label for="pass2"><?php _e( 'Confirm new password' ); ?></label>
    1003                                 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" />
     1003                                <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" required="required" />
    10041004                        </p>
    10051005
    10061006                        <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
     
    11001100                <form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
    11011101                        <p>
    11021102                                <label for="user_login"><?php _e( 'Username' ); ?></label>
    1103                                 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" />
     1103                                <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="required" />
    11041104                        </p>
    11051105                        <p>
    11061106                                <label for="user_email"><?php _e( 'Email' ); ?></label>
    1107                                 <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" />
     1107                                <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" required="required" />
    11081108                        </p>
    11091109                        <?php
    11101110
     
    14091409                <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    14101410                        <p>
    14111411                                <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
    1412                                 <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" />
     1412                                <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="required" />
    14131413                        </p>
    14141414
    14151415                        <div class="user-pass-wrap">
    14161416                                <label for="user_pass"><?php _e( 'Password' ); ?></label>
    14171417                                <div class="wp-pwd">
    1418                                         <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" />
     1418                                        <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" required="required" />
    14191419                                        <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' ); ?>">
    14201420                                                <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
    14211421                                        </button>