diff --git a/wp-includes/version.php b/wp-includes/version.php index 4550cf16e6..ad9a466a7d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53706'; +$wp_version = '6.1-alpha-53707'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index de528842e0..076b866df3 100644 --- a/wp-login.php +++ b/wp-login.php @@ -261,7 +261,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) { * * @param string $messages Login messages. */ - echo '

' . apply_filters( 'login_messages', $messages ) . "

\n"; + echo '

' . apply_filters( 'login_messages', $messages ) . "

\n"; } } } // End of login_header(). @@ -1388,10 +1388,15 @@ switch ( $action ) { $rememberme = ! empty( $_POST['rememberme'] ); - if ( $errors->has_errors() ) { - $aria_describedby_error = ' aria-describedby="login_error"'; - } else { - $aria_describedby_error = ''; + $aria_describedby = ''; + $has_errors = $errors->has_errors(); + + if ( $has_errors ) { + $aria_describedby = ' aria-describedby="login_error"'; + } + + if ( $has_errors && 'message' === $errors->get_error_data() ) { + $aria_describedby = ' aria-describedby="login-message"'; } wp_enqueue_script( 'user-profile' ); @@ -1400,13 +1405,13 @@ switch ( $action ) {

- class="input" value="" size="20" autocapitalize="off" autocomplete="username" /> + class="input" value="" size="20" autocapitalize="off" autocomplete="username" />

- class="input password-input" value="" size="20" autocomplete="current-password" /> + class="input password-input" value="" size="20" autocomplete="current-password" />