From 7c2f6dd6cb089f2be0c51ac4e23f46d7d1a657c2 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sat, 17 Sep 2022 00:33:45 +0000 Subject: [PATCH] Login and Registration: Required fields in network registration. Properly label site and user information on the network registration screen with the HTML5 required attribute and clarify the values expected for the site domain and subdirectory fields. Props SteelWagstaff, henrywright, sabernhardt. Fixes #54344. git-svn-id: https://develop.svn.wordpress.org/trunk@54192 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-signup.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-signup.php b/src/wp-signup.php index 59684ca3df..9782dad499 100644 --- a/src/wp-signup.php +++ b/src/wp-signup.php @@ -115,9 +115,9 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { $current_network = get_network(); // Blog name. if ( ! is_subdomain_install() ) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } $errmsg_blogname = $errors->get_error_message( 'blogname' ); @@ -128,10 +128,10 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { } if ( ! is_subdomain_install() ) { - echo '
' . $current_network->domain . $current_network->path . '
'; + echo '
' . $current_network->domain . $current_network->path . '
'; } else { $site_domain = preg_replace( '|^www\.|', '', $current_network->domain ); - echo '
.' . esc_html( $site_domain ) . '
'; + echo '
.' . esc_html( $site_domain ) . '
'; } if ( ! is_user_logged_in() ) { @@ -159,7 +159,7 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { $errmsg_blog_title_aria = ' aria-describedby="wp-signup-blog-title-error"'; echo '

' . $errmsg_blog_title . '

'; } - echo ''; + echo ''; ?> ' . $errmsg_username . '

'; } ?> - +

' . $errmsg_email . '

'; } ?> - +