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.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb
2025-01-26 22:22:24 +00:00
parent 906810c2db
commit 48ed5b3159
2 changed files with 2 additions and 2 deletions

View File

@@ -2346,7 +2346,7 @@ function get_calendar( $initial = true, $display = true ) {
foreach ( $myweek as $wd ) {
$day_name = $initial ? $wp_locale->get_weekday_initial( $wd ) : $wp_locale->get_weekday_abbrev( $wd );
$wd = esc_attr( $wd );
$calendar_output .= "\n\t\t<th scope=\"col\" title=\"$wd\">$day_name</th>";
$calendar_output .= "\n\t\t<th scope=\"col\" aria-label=\"$wd\">$day_name</th>";
}
$calendar_output .= '

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59710';
$wp_version = '6.8-alpha-59711';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.