[wp-trac] [WordPress Trac] #60062: Add required attribute to username and password field in wp_login_form function.

WordPress Trac noreply at wordpress.org
Sat Jun 8 23:35:37 UTC 2024


#60062: Add required attribute to username and password field in wp_login_form
function.
-------------------------------------+-------------------------------------
 Reporter:  alesflex                 |       Owner:  rcreators
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.6
Component:  Login and Registration   |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  required-fields has-     |     Focuses:  accessibility,
  patch has-testing-info             |  template
-------------------------------------+-------------------------------------
Changes (by rajinsharwar):

 * keywords:  required-fields has-patch needs-testing has-testing-info =>
     required-fields has-patch has-testing-info


Comment:

 I have tested the PR: 6352. And found that:

 1. With none of the required-x argument set: https://prnt.sc/-ez4buphF0Lv
 ✅
 2. With only '**required_password**' => true: https://prnt.sc/sIwfGuvnVvpL
 ✅
 3. With only '**required_username**' => true: https://prnt.sc/4D4WcIftSzKh
 ✅
 4. With both required-x set: https://prnt.sc/T24XoX0uqUsI ✅

 I believe this is good to be committed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60062#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list