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:
@@ -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 .= '
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user