Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion partials/settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function ( $a, $b ) {

<?php
if ( $edac_settings_tab_items ) {
echo '<nav class="nav-tab-wrapper" aria-label="Settings Tabs">';
echo '<nav class="nav-tab-wrapper" aria-label="Settings">';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The aria-label value "Settings" is a user-facing string (read by screen readers) but is currently hardcoded in English. To support internationalization (i18n), it should be translatable using WordPress translation functions like esc_attr__().

        echo '<nav class="nav-tab-wrapper" aria-label="' . esc_attr__( 'Settings', 'accessibility-checker' ) . '">';

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
foreach ( $edac_settings_tab_items as $edac_settings_tab_item ) {
$edac_slug = $edac_settings_tab_item['slug'] ? $edac_settings_tab_item['slug'] : null;
$edac_query_var = $edac_slug ? '&tab=' . $edac_slug : '';
Expand Down
Loading