[wp-trac] [WordPress Trac] #54344: Required inputs on multisite site registration page lack required attribute

WordPress Trac noreply at wordpress.org
Sat Oct 30 02:55:36 UTC 2021


#54344: Required inputs on multisite site registration page lack required attribute
------------------------------------+-----------------------------
 Reporter:  SteelWagstaff           |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  5.8.1
 Severity:  normal                  |   Keywords:  needs-patch
  Focuses:  accessibility           |
------------------------------------+-----------------------------
 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
 (https://github.com/WordPress/wordpress-
 develop/blob/ec5ed03bf62ebf72b36da58d3578d0c98cdda1d2/src/wp-
 signup.php#L152 + https://github.com/WordPress/wordpress-
 develop/blob/ec5ed03bf62ebf72b36da58d3578d0c98cdda1d2/src/wp-
 signup.php#L121-L124).

 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54344>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list