Ticket #11554: 11554.patch
File 11554.patch, 2.0 KB (added by , 15 years ago) |
---|
-
wp-includes/general-template.php
1073 1073 1074 1074 /* translators: Calendar caption: 1: month name, 2: 4-digit year */ 1075 1075 $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"> 1077 1077 <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption> 1078 1078 <thead> 1079 1079 <tr>'; … … 1087 1087 foreach ( $myweek as $wd ) { 1088 1088 $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd); 1089 1089 $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>"; 1091 1091 } 1092 1092 1093 1093 echo ' … … 1098 1098 <tr>'; 1099 1099 1100 1100 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="' . 1102 1102 get_month_link($previous->year, $previous->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($previous->month), 1103 1103 date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year))) . '">« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>'; 1104 1104 } else { … … 1108 1108 echo "\n\t\t".'<td class="pad"> </td>'; 1109 1109 1110 1110 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="' . 1112 1112 get_month_link($next->year, $next->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month) , 1113 1113 date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>'; 1114 1114 } else {