@@ -827,7 +827,7 @@ function wp_login_viewport_meta() {
827827 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url ( network_site_url ( 'wp-login.php?action=lostpassword ' , 'login_post ' ) ); ?> " method="post">
828828 <p>
829829 <label for="user_login"><?php _e ( 'Username or Email Address ' ); ?> </label>
830- <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr ( $ user_login ); ?> " size="20" autocapitalize="off" />
830+ <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr ( $ user_login ); ?> " size="20" autocapitalize="off" autocomplete="username" />
831831 </p>
832832 <?php
833833
@@ -1062,11 +1062,11 @@ function wp_login_viewport_meta() {
10621062 <form name="registerform" id="registerform" action="<?php echo esc_url ( site_url ( 'wp-login.php?action=register ' , 'login_post ' ) ); ?> " method="post" novalidate="novalidate">
10631063 <p>
10641064 <label for="user_login"><?php _e ( 'Username ' ); ?> </label>
1065- <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr ( wp_unslash ( $ user_login ) ); ?> " size="20" autocapitalize="off" />
1065+ <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr ( wp_unslash ( $ user_login ) ); ?> " size="20" autocapitalize="off" autocomplete="username" />
10661066 </p>
10671067 <p>
10681068 <label for="user_email"><?php _e ( 'Email ' ); ?> </label>
1069- <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr ( wp_unslash ( $ user_email ) ); ?> " size="25" />
1069+ <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr ( wp_unslash ( $ user_email ) ); ?> " size="25" autocomplete="email" />
10701070 </p>
10711071 <?php
10721072
@@ -1389,13 +1389,13 @@ function wp_login_viewport_meta() {
13891389 <form name="loginform" id="loginform" action="<?php echo esc_url ( site_url ( 'wp-login.php ' , 'login_post ' ) ); ?> " method="post">
13901390 <p>
13911391 <label for="user_login"><?php _e ( 'Username or Email Address ' ); ?> </label>
1392- <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" />
1392+ <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" autocomplete="username" />
13931393 </p>
13941394
13951395 <div class="user-pass-wrap">
13961396 <label for="user_pass"><?php _e ( 'Password ' ); ?> </label>
13971397 <div class="wp-pwd has-password-toggle">
1398- <input type="password" name="pwd" id="user_pass"<?php echo $ aria_describedby_error ; ?> class="input password-input" value="" size="20" />
1398+ <input type="password" name="pwd" id="user_pass"<?php echo $ aria_describedby_error ; ?> class="input password-input" value="" size="20" autocomplete="current-password" />
13991399 <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 ' ); ?> ">
14001400 <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
14011401 </button>
0 commit comments