diff --git a/src/wp-admin/css/login.css b/src/wp-admin/css/login.css index 12590f27f4..ff9060f7ed 100644 --- a/src/wp-admin/css/login.css +++ b/src/wp-admin/css/login.css @@ -328,6 +328,22 @@ body.interim-login { margin: 0; } +/* Hide visually but not from screen readers */ +.screen-reader-text, +.screen-reader-text span { + border: 0; + clip: rect(1px, 1px, 1px, 1px); + -webkit-clip-path: inset(50%); + clip-path: inset(50%); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */ +} + @-ms-viewport { width: device-width; } diff --git a/src/wp-login.php b/src/wp-login.php index c57f0a26ce..c8693ee99f 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -606,7 +606,7 @@ switch ( $action ) { exit; } - login_header( __( 'Confirm your admin email' ), '', $errors ); + login_header( __( 'Confirm your administration email' ), '', $errors ); /** * Fires before the admin email confirm form. @@ -643,10 +643,14 @@ switch ( $action ) { /* translators: URL to the WordPress help section about admin email. */ $admin_email_help_url = __( 'https://wordpress.org/support/article/settings-general-screen/#email-address' ); + /* translators: accessibility text */ + $accessibility_text = sprintf( ' %s', __( '(opens in a new tab)' ) ); + printf( - '%s', + '%s%s', esc_url( $admin_email_help_url ), - __( 'Why is this important?' ) + __( 'Why is this important?' ), + $accessibility_text ); ?> @@ -656,23 +660,14 @@ switch ( $action ) { printf( /* translators: %s: Admin email address. */ - __( 'Current administration email: %s' ), - '' . esc_html( $admin_email ) . '' + __( 'Current administration email: %s' ), + esc_html( $admin_email ) ); ?>
- %s', - esc_url( $admin_email_help_url ), - __( 'Learn more.' ) - ); - - ?>