WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 7 weeks ago

#54344 new defect (bug)

Required inputs on multisite site registration page lack required attribute

Reported by: SteelWagstaff Owned by:
Milestone: 6.0 Priority: normal
Severity: normal Version: 5.8.1
Component: Login and Registration Keywords: required-fields has-patch
Focuses: accessibility, ui-copy Cc:

Description (last modified by sabernhardt)

When a user attempts to create a new site on a WordPress multisite which allows registered users to create new sites (wp-signup.php), the signup page treats both 'site domain' and 'site title' as required fields, displaying an error message if either field is left blank. However, neither of the inputs has the required attribute that would indicate that this is the case to users of assistive technology (Site Title input + Site Name/Domain input).

Second, while the site domain input has a label, the label does not include the URL content that is included in the address by default (the root URL for the subdomain or subdirectory installation). As a result, users of screen readers and other assistive technology may attempt to input the entire URL they wish to use for their site, resulting in an invalid value.

I'm willing and able to provide a simple patch to add the required attribute to the site domain and site title input fields, if that's considered a welcome addition to WP core.

Attachments (1)

54344.diff (2.9 KB) - added by henry.wright 2 months ago.

Download all attachments as: .zip

Change History (8)

#1 @sabernhardt
3 months ago

  • Description modified (diff)
  • Focuses ui-copy added
  • Keywords required-fields added

Thanks for the report!

You already noticed the related ticket:40361, with a larger scope, but this might be good to address separately (especially if the label text is improved).

Also related: #32510

This ticket was mentioned in Slack in #accessibility by sabernhardt. View the logs.


3 months ago

#3 @henry.wright
2 months ago

In addition to the input fields output by show_blog_form(), wp-signup.php calls show_user_form() which outputs a user name field and a user email field. Like the site name and site title fields, the user name and user email fields are required and would benefit from a required attribute.

Last edited 2 months ago by henry.wright (previous) (diff)

@henry.wright
2 months ago

#4 @henry.wright
2 months ago

  • Keywords has-patch added; needs-patch removed

54344.diff adds a required attribute to the following form fields:

  • blogname
  • blog_title
  • user_name
  • user_email

#5 @henry.wright
2 months ago

  • Type changed from defect (bug) to enhancement

This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.


7 weeks ago

#7 @ryokuhi
7 weeks ago

  • Milestone changed from Awaiting Review to 6.0
  • Type changed from enhancement to defect (bug)

Hello @SteelWagstaff, and thanks again for reporting the issue.
Teh ticket was reviewed today during the accessibility Team's bug-scrub.
Given that the ticket already has a patch, we're milestoning it for 6.0.

Note: See TracTickets for help on using tickets.