diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-signup.php --- a/wp/wp-signup.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-signup.php Fri Sep 05 18:40:08 2025 +0200 @@ -57,25 +57,35 @@ function wpmu_signup_stylesheet() { ?> ' . __( 'Site Name:' ) . ''; + echo ''; } else { - echo ''; + echo ''; } - $errmsg = $errors->get_error_message( 'blogname' ); - if ( $errmsg ) { - ?> -

- get_error_message( 'blogname' ); + $errmsg_blogname_aria = ''; + if ( $errmsg_blogname ) { + $errmsg_blogname_aria = 'wp-signup-blogname-error '; + echo '

' . $errmsg_blogname . '

'; } 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() ) { @@ -143,13 +153,13 @@ ?> get_error_message( 'blog_title' ); - if ( $errmsg ) { - ?> -

- get_error_message( 'blog_title' ); + $errmsg_blog_title_aria = ''; + if ( $errmsg_blog_title ) { + $errmsg_blog_title_aria = ' aria-describedby="wp-signup-blog-title-error"'; + echo '

' . $errmsg_blog_title . '

'; } - echo ''; + echo ''; ?>
-

- - -
- - -

+
+ + + + + +
' . __( 'Username:' ) . ''; - $errmsg = $errors->get_error_message( 'user_name' ); - if ( $errmsg ) { - echo '

' . $errmsg . '

'; + $errmsg_username = $errors->get_error_message( 'user_name' ); + $errmsg_username_aria = ''; + if ( $errmsg_username ) { + $errmsg_username_aria = 'wp-signup-username-error '; + echo '

' . $errmsg_username . '

'; } - echo '
'; - _e( '(Must be at least 4 characters, letters and numbers only.)' ); ?> + +

- get_error_message( 'user_email' ); - if ( $errmsg ) { - ?> -

- -
+ // Email address. + echo ''; + $errmsg_email = $errors->get_error_message( 'user_email' ); + $errmsg_email_aria = ''; + if ( $errmsg_email ) { + $errmsg_email_aria = 'wp-signup-email-error '; + echo '

' . $errmsg_email . '

'; + } + ?> + +

+ get_error_message( 'generic' ); - if ( $errmsg ) { - echo '

' . $errmsg . '

'; + // Extra fields. + $errmsg_generic = $errors->get_error_message( 'generic' ); + if ( $errmsg_generic ) { + echo '

' . $errmsg_generic . '

'; } /** * Fires at the end of the new user account registration form. @@ -378,7 +399,7 @@ -

- + - + - - /> - -
- /> - - -

+ +
+ +

+ + +

+
+

@@ -677,8 +704,8 @@

you must activate it.' ); ?>

' . $user_email . '' ); + /* translators: %s: The user email address. */ + printf( __( 'Check your inbox at %s and click on the given link.' ), '' . $user_email . '' ); ?>

@@ -835,25 +862,23 @@

you must activate it.' ); ?>

' . $user_email . '' ); + /* translators: %s: The user email address. */ + printf( __( 'Check your inbox at %s and click on the given link.' ), '' . $user_email . '' ); ?>

-

- -

-

+

+