Skip to content

Commit 482d3e1

Browse files
committed
General: Get rid of title attributes used by get_calendar().
This changeset replaces `title` attributes with `aria-label` for weekdays in `get_calendar()` table cells. Props sabernhardt, audrasjb, mukesh27, shailu25. Fixes #62860. See #24766. git-svn-id: https://develop.svn.wordpress.org/trunk@59711 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e41f4f9 commit 482d3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/general-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ function get_calendar( $initial = true, $display = true ) {
23462346
foreach ( $myweek as $wd ) {
23472347
$day_name = $initial ? $wp_locale->get_weekday_initial( $wd ) : $wp_locale->get_weekday_abbrev( $wd );
23482348
$wd = esc_attr( $wd );
2349-
$calendar_output .= "\n\t\t<th scope=\"col\" title=\"$wd\">$day_name</th>";
2349+
$calendar_output .= "\n\t\t<th scope=\"col\" aria-label=\"$wd\">$day_name</th>";
23502350
}
23512351

23522352
$calendar_output .= '

0 commit comments

Comments
 (0)