From d56f81fe45aba6998bda894fe86db33f64a8d98b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 29 Mar 2019 18:27:51 +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. Built from https://develop.svn.wordpress.org/trunk@45070 git-svn-id: http://core.svn.wordpress.org/trunk@44879 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/site-health-info.php | 2 ++ wp-admin/site-health.php | 2 ++ wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/site-health-info.php b/wp-admin/site-health-info.php index fde931ab8a..4f5f2c8045 100644 --- a/wp-admin/site-health-info.php +++ b/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/wp-admin/site-health.php b/wp-admin/site-health.php index 62279e7daa..f3efc23d49 100644 --- a/wp-admin/site-health.php +++ b/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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index ce0e5feb56..1eb1cc7708 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta1-45069'; +$wp_version = '5.2-beta1-45070'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.