Make WordPress Core

Changeset 59711


Ignore:
Timestamp:
01/26/2025 10:20:20 PM (26 hours ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r59696 r59711  
    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
Note: See TracChangeset for help on using the changeset viewer.