Accessibility: Add the `aria-hidden` attribute to the auto-update related icons.
`<span>` elements used for displaying icons should use the `aria-hidden` attribute as they are purely decorative. Props audrasjb, ryokuhi. Fixes #50293. Built from https://develop.svn.wordpress.org/trunk@47910 git-svn-id: http://core.svn.wordpress.org/trunk@47684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
00d3696923
commit
b013a15d43
|
@ -748,7 +748,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
$action
|
||||
);
|
||||
|
||||
echo '<span class="dashicons dashicons-update spin hidden"></span>';
|
||||
echo '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
|
||||
echo '<span class="label">' . $text . '</span>';
|
||||
echo '</a>';
|
||||
|
||||
|
|
|
@ -1066,7 +1066,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
$action
|
||||
);
|
||||
|
||||
echo '<span class="dashicons dashicons-update spin hidden"></span>';
|
||||
echo '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
|
||||
echo '<span class="label">' . $text . '</span>';
|
||||
echo '</a>';
|
||||
|
||||
|
|
|
@ -632,12 +632,12 @@ if ( ! is_multisite() && $broken_themes ) {
|
|||
<p class="theme-autoupdate">
|
||||
<# if ( data.autoupdate ) { #>
|
||||
<a href="{{{ data.actions.autoupdate }}}" class="toggle-auto-update" data-slug="{{ data.id }}" data-wp-action="disable">
|
||||
<span class="dashicons dashicons-update spin hidden"></span>
|
||||
<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>
|
||||
<span class="label"><?php _e( 'Disable auto-updates' ); ?></span>
|
||||
</a>
|
||||
<# } else { #>
|
||||
<a href="{{{ data.actions.autoupdate }}}" class="toggle-auto-update" data-slug="{{ data.id }}" data-wp-action="enable">
|
||||
<span class="dashicons dashicons-update spin hidden"></span>
|
||||
<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>
|
||||
<span class="label"><?php _e( 'Enable auto-updates' ); ?></span>
|
||||
</a>
|
||||
<# } #>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-47909';
|
||||
$wp_version = '5.5-alpha-47910';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue