From 15cd32ac3dd02ab5949cb343ad8164d981bcc115 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 2 Jan 2023 22:48:55 +0000 Subject: [PATCH] Networks and Sites: Mark required fields as such in New User Form. This changeset adds `required="required"` attributes to required form fields and uses `wp_required_field_message()` and `wp_required_field_indicator()` functions to improve the generated markup, and for better consistency with other required fields. Props jackreichert, flixos90, afercia, sabernhardt. Fixes #38460. git-svn-id: https://develop.svn.wordpress.org/trunk@55026 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/user-new.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/wp-admin/network/user-new.php b/src/wp-admin/network/user-new.php index c881dff2ac..caf692b83b 100644 --- a/src/wp-admin/network/user-new.php +++ b/src/wp-admin/network/user-new.php @@ -124,19 +124,20 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
- - - - - - - - - - - - - +

+ + + + + + + + + + + + +