Make WordPress Core

Ticket #1585: template-functions-general.16.php.diff

File template-functions-general.16.php.diff, 884 bytes (added by markjaquith, 21 years ago)

Patch for 1.6 SVN

  • template-functions-general.php

     
    366366        return ($num - $base*floor($num/$base));
    367367}
    368368
    369 function get_calendar($daylength = 1) {
     369 function get_calendar($daylength = 1) {
    370370    global $wpdb, $m, $monthnum, $year, $timedifference, $month, $month_abbrev, $weekday, $weekday_initial, $weekday_abbrev, $posts;
    371371
    372372    // Quick check. If we have no posts at all, abort!
     
    424424                              ORDER  BY post_date ASC
    425425                              LIMIT 1");
    426426
    427     echo '<table id="wp-calendar">
     427    echo '<table id="wp-calendar" summary="calendar">
    428428    <caption>' . $month[zeroise($thismonth, 2)] . ' ' . date('Y', $unixmonth) . '</caption>
    429429    <thead>
    430430    <tr>';