Accessibility: Make sure the Site Health layout tables are correctly linearized.

Adds `role="presentation"` to the `<table>` elements used in the Site Health reports.

Ideally, HTML tables should be used for tabular data. When tables are used for layout purposes, it's important to remove any native semantics so that assistive technologies can correctly announce the table content in a linearized fashion.

Props chetan200891.
Fixes #46725.

Built from https://develop.svn.wordpress.org/trunk@45075


git-svn-id: http://core.svn.wordpress.org/trunk@44884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2019-03-30 14:42:51 +00:00
parent fdda9ca9dd
commit 2737a54374
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
);
}
?>
<table class="widefat striped health-check-table">
<table class="widefat striped health-check-table" role="presentation">
<tbody>
<?php
foreach ( $details['fields'] as $field ) {

View File

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