[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 20:45:30 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 needs-testing has-testing- | template
info |
-------------------------------------+-------------------------------------
Changes (by joedolson):
* keywords: required-fields has-patch => required-fields has-patch needs-
testing has-testing-info
Comment:
Since we've decided to go with adding the arguments only, no extension
testing is required. Extenders can choose to add the arguments to their
implementations and test at that point. But at least it's now possible to
add the `required` attributes to the login form output.
Testing:
- Call `wp_login_form()` with default arguments. Confirm that the input
fields are not marked as required.
- Call `wp_login_form()` with the `required_username` and
`required_password` fields set to 'true'. Verify that the input fields
have the `required` attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60062#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list