Make WordPress Core

Changeset 12943


Ignore:
Timestamp:
02/04/2010 04:06:58 PM (14 years ago)
Author:
ryan
Message:

Make calendar valid HTML 5. Props iammattthomas. fixes #11554

File:
1 edited

Legend:

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

    r12917 r12943  
    10741074    /* translators: Calendar caption: 1: month name, 2: 4-digit year */
    10751075    $calendar_caption = _x('%1$s %2$s', 'calendar caption');
    1076     echo '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '">
     1076    echo '<table id="wp-calendar">
    10771077    <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption>
    10781078    <thead>
     
    10881088        $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd);
    10891089        $wd = esc_attr($wd);
    1090         echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">$day_name</th>";
     1090        echo "\n\t\t<th scope=\"col\" title=\"$wd\">$day_name</th>";
    10911091    }
    10921092
     
    10991099
    11001100    if ( $previous ) {
    1101         echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($previous->month) . '" colspan="3" id="prev"><a href="' .
     1101        echo "\n\t\t".'<td colspan="3" id="prev"><a href="' .
    11021102        get_month_link($previous->year, $previous->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($previous->month),
    11031103            date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year))) . '">&laquo; ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>';
     
    11091109
    11101110    if ( $next ) {
    1111         echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($next->month) . '" colspan="3" id="next"><a href="' .
     1111        echo "\n\t\t".'<td colspan="3" id="next"><a href="' .
    11121112        get_month_link($next->year, $next->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month) ,
    11131113            date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' &raquo;</a></td>';
Note: See TracChangeset for help on using the changeset viewer.