From c71fad7e48349137de766d9501358c67c53461f7 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Tue, 20 Jun 2023 22:46:52 +0000 Subject: [PATCH] Login and Registration: Add `required` to Username/password inputs. Add the `required` attributes to username and password inputs for login. Props aznadesign, sanchothefat, alexstine, nant82, swissspidy, afercia, d-signed, joedolson. Fixes #32510. git-svn-id: https://develop.svn.wordpress.org/trunk@55953 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-login.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-login.php b/src/wp-login.php index e53eedb2c4419..67d7db07a50c3 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -842,7 +842,7 @@ function wp_login_viewport_meta() {

- +

" method="post" novalidate="novalidate">

- +

- +

" method="post">

- class="input" value="" size="20" autocapitalize="off" autocomplete="username" /> + class="input" value="" size="20" autocapitalize="off" autocomplete="username" required="required" />

- class="input password-input" value="" size="20" autocomplete="current-password" spellcheck="false" /> + class="input password-input" value="" size="20" autocomplete="current-password" spellcheck="false" required="required" />