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.
Built from https://develop.svn.wordpress.org/trunk@45175


git-svn-id: http://core.svn.wordpress.org/trunk@44984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2019-04-12 19:05:51 +00:00
parent 7f456cab7d
commit 105277f93e
3 changed files with 3 additions and 3 deletions

View File

@ -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 );
}
/**

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2-beta2-45174';
$wp_version = '5.2-beta2-45175';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -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 );
}
/**