Administration: Move “Recovery Mode” to the beginning of the document title.
This improves accessibility, ensuring users utilizing screen readers are informed that the site is in recovery mode. Props: afercia, TimothyBlynJacobs. See #46608. git-svn-id: https://develop.svn.wordpress.org/trunk@45175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b0d7c97806
commit
212bbbae98
@ -54,7 +54,7 @@ if ( $admin_title == $title ) {
|
||||
|
||||
if ( wp_is_recovery_mode() ) {
|
||||
/* translators: %s: Admin screen title. */
|
||||
$admin_title = sprintf( __( '%s — Recovery Mode' ), $admin_title );
|
||||
$admin_title = sprintf( __( 'Recovery Mode — %s' ), $admin_title );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,7 +66,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
|
||||
|
||||
if ( wp_is_recovery_mode() ) {
|
||||
/* translators: %s: Login screen title. */
|
||||
$login_title = sprintf( __( '%s — Recovery Mode' ), $login_title );
|
||||
$login_title = sprintf( __( 'Recovery Mode — %s' ), $login_title );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user