From e1e1a4008398b32dbea964107fe51ccbd6a9e494 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 29 Mar 2019 18:26:28 +0000 Subject: [PATCH] Accessibility: Make sure the Site Health pages have a unique document title. The document `` gives a name to a web document. In the context of the WordPress admin, a unique, meaningful, title is important for various reasons: - it allows browser's history to store meaningful entries - when multiple browser's tabs are open, it allows users to better identify the tab content - it's the first thing screen readers announce when navigating to a web page, thus helping users to identify the nature of the page content Props chetan200891, mukesh27. Fixes #46699. git-svn-id: https://develop.svn.wordpress.org/trunk@45070 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/site-health-info.php | 2 ++ src/wp-admin/site-health.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/wp-admin/site-health-info.php b/src/wp-admin/site-health-info.php index fde931ab8a..4f5f2c8045 100644 --- a/src/wp-admin/site-health-info.php +++ b/src/wp-admin/site-health-info.php @@ -9,6 +9,8 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); +$title = __( 'Site Health Info' ); + if ( ! current_user_can( 'install_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to access the debug data.' ), '', 403 ); } diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php index 62279e7daa..f3efc23d49 100644 --- a/src/wp-admin/site-health.php +++ b/src/wp-admin/site-health.php @@ -14,6 +14,8 @@ if ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] ) { /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); +$title = __( 'Site Health Status' ); + if ( ! current_user_can( 'install_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to access site health information.' ), '', 403 ); }