From ea885d3a2600b40190626b3b331ebcebdda776d1 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sat, 29 Oct 2016 12:53:44 +0000 Subject: [PATCH] Accessibility: Improve the form labels on the Add New User screen. On the Multisite - single site "Add New User" screen, some form fields have more than one label associated with them. Form controls should have at most one associated label element. If more than one label element is associated to the control, assistive technologies may not read the appropriate label. Additionally, labels can be associated to their related form fields either explicitly (using a `for` attribute referencing the field ID) or implicitly (using the label to wrap the field). As a best practice, never do both and prefer explicitly associated labels when possible. Props Ankit K Gupta. Fixes #38459. git-svn-id: https://develop.svn.wordpress.org/trunk@39006 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-new.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php index 4915960027..e039d711ef 100644 --- a/src/wp-admin/user-new.php +++ b/src/wp-admin/user-new.php @@ -348,8 +348,11 @@ if ( is_multisite() ) { - - + + + + + @@ -462,7 +465,10 @@ $new_user_ignore_pass = $creating && isset( $_POST['noconfirmation'] ) ? wp_unsl - + + /> + + @@ -478,8 +484,11 @@ $new_user_ignore_pass = $creating && isset( $_POST['noconfirmation'] ) ? wp_unsl - - + + + /> + +