From fd40a16ad1626156e0806fba29828b223a98bb5e Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sat, 29 Oct 2016 12:54:30 +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. Built from https://develop.svn.wordpress.org/trunk@39006 git-svn-id: http://core.svn.wordpress.org/trunk@38948 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-new.php | 19 ++++++++++++++----- wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 4915960027..e039d711ef 100644 --- a/wp-admin/user-new.php +++ b/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 - - + + + /> + + diff --git a/wp-includes/version.php b/wp-includes/version.php index 28f8f12a2f..00f89a7555 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39005'; +$wp_version = '4.7-beta1-39006'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.