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:
parent
7f456cab7d
commit
105277f93e
|
@ -54,7 +54,7 @@ if ( $admin_title == $title ) {
|
||||||
|
|
||||||
if ( wp_is_recovery_mode() ) {
|
if ( wp_is_recovery_mode() ) {
|
||||||
/* translators: %s: Admin screen title. */
|
/* translators: %s: Admin screen title. */
|
||||||
$admin_title = sprintf( __( '%s — Recovery Mode' ), $admin_title );
|
$admin_title = sprintf( __( 'Recovery Mode — %s' ), $admin_title );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -66,7 +66,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
|
||||||
|
|
||||||
if ( wp_is_recovery_mode() ) {
|
if ( wp_is_recovery_mode() ) {
|
||||||
/* translators: %s: Login screen title. */
|
/* 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