Changes from trunk/wp-includes/general-template.php at r11548 to branches/2.8/wp-includes/general-template.php at r11890
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-includes/general-template.php
r11548 r11890 1024 1024 /* translators: Calendar caption: 1: month name, 2: 4-digit year */ 1025 1025 $calendar_caption = _x('%1$s %2$s', 'calendar caption'); 1026 echo '<table id="wp-calendar" summary="' . __('Calendar') . '">1026 echo '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '"> 1027 1027 <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption> 1028 1028 <thead> … … 1037 1037 foreach ( $myweek as $wd ) { 1038 1038 $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd); 1039 $wd = esc_attr($wd); 1039 1040 echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">$day_name</th>"; 1040 1041 } … … 1059 1060 if ( $next ) { 1060 1061 echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($next->month) . '" colspan="3" id="next"><a href="' . 1061 get_month_link($next->year, $next->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month),1062 date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';1062 get_month_link($next->year, $next->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month) , 1063 date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>'; 1063 1064 } else { 1064 1065 echo "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>'; … … 1117 1118 $pad = calendar_week_mod(date('w', $unixmonth)-$week_begins); 1118 1119 if ( 0 != $pad ) 1119 echo "\n\t\t".'<td colspan="'. $pad.'" class="pad"> </td>';1120 echo "\n\t\t".'<td colspan="'. esc_attr($pad) .'" class="pad"> </td>'; 1120 1121 1121 1122 $daysinmonth = intval(date('t', $unixmonth)); … … 1131 1132 1132 1133 if ( in_array($day, $daywithpost) ) // any posts today? 1133 echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\" $ak_titles_for_day[$day]\">$day</a>";1134 echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"" . esc_attr($ak_titles_for_day[$day]) . "\">$day</a>"; 1134 1135 else 1135 1136 echo $day; … … 1142 1143 $pad = 7 - calendar_week_mod(date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear))-$week_begins); 1143 1144 if ( $pad != 0 && $pad != 7 ) 1144 echo "\n\t\t".'<td class="pad" colspan="'. $pad.'"> </td>';1145 echo "\n\t\t".'<td class="pad" colspan="'. esc_attr($pad) .'"> </td>'; 1145 1146 1146 1147 echo "\n\t</tr>\n\t</tbody>\n\t</table>";
Note: See TracChangeset
for help on using the changeset viewer.