[wp-trac] [WordPress Trac] #60062: Add required attribute to username and password field in wp_login_form function.
WordPress Trac
noreply at wordpress.org
Tue Jun 11 06:22:54 UTC 2024
#60062: Add required attribute to username and password field in wp_login_form
function.
-------------------------------------+-------------------------------------
Reporter: alesflex | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6
Component: Login and Registration | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: required-fields has- | Focuses: accessibility,
patch has-testing-info commit | template
-------------------------------------+-------------------------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"58382" 58382]:
{{{
#!CommitTicketReference repository="" revision="58382"
Login and Registration: Add `required` attribute to username and password
fields in `wp_login_form()`.
These attributes are needed to indicate that both fields are required.
This changeset doesn't add the attribute by default but allows extenders
to enable it by passing `true` to the `$required_username` and
`$required_password` to `wp_login_form()` arguments array.
Props alesflex, sabernhardt, joedolson, rcreators, rajinsharwar.
Fixes #60062.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60062#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list