Site Health: Update "Passed tests" button label to match both expanded and collapsed state.

Add `aria-controls` to declare what ID is being toggled.

Props Clorith, afercia.
Fixes #46663. See #46573.
Built from https://develop.svn.wordpress.org/trunk@45026


git-svn-id: http://core.svn.wordpress.org/trunk@44835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-03-27 02:57:51 +00:00
parent ada13d2ffd
commit 6be19e0dab
2 changed files with 3 additions and 3 deletions

View File

@ -97,8 +97,8 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
</div>
<div class="view-more">
<button type="button" class="button site-health-view-passed" aria-expanded="false">
<?php _e( 'Show passed tests' ); ?>
<button type="button" class="button site-health-view-passed" aria-expanded="false" aria-controls="health-check-issues-good">
<?php _e( 'Passed tests' ); ?>
</button>
</div>

View File

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