Skip to content

Commit

Permalink
Accessibility: Make sure the Site Health pages have a unique document…
Browse files Browse the repository at this point in the history
… title.

The document `<title>` 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
  • Loading branch information
afercia committed Mar 29, 2019
1 parent f5a66ca commit e1e1a40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp-admin/site-health-info.php
Expand Up @@ -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 );
}
Expand Down
2 changes: 2 additions & 0 deletions src/wp-admin/site-health.php
Expand Up @@ -14,6 +14,8 @@
/** 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 );
}
Expand Down

0 comments on commit e1e1a40

Please sign in to comment.