Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11890 r11548  
    10241024        /* translators: Calendar caption: 1: month name, 2: 4-digit year */
    10251025        $calendar_caption = _x('%1$s %2$s', 'calendar caption');
    1026         echo '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '">
     1026        echo '<table id="wp-calendar" summary="' . __('Calendar') . '">
    10271027        <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption>
    10281028        <thead>
     
    10371037        foreach ( $myweek as $wd ) {
    10381038                $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd);
    1039                 $wd = esc_attr($wd);
    10401039                echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">$day_name</th>";
    10411040        }
     
    10601059        if ( $next ) {
    10611060                echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($next->month) . '" colspan="3" id="next"><a href="' .
    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)) . ' &raquo;</a></td>';
     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)) . ' &raquo;</a></td>';
    10641063        } else {
    10651064                echo "\n\t\t".'<td colspan="3" id="next" class="pad">&nbsp;</td>';
     
    11181117        $pad = calendar_week_mod(date('w', $unixmonth)-$week_begins);
    11191118        if ( 0 != $pad )
    1120                 echo "\n\t\t".'<td colspan="'. esc_attr($pad) .'" class="pad">&nbsp;</td>';
     1119                echo "\n\t\t".'<td colspan="'.$pad.'" class="pad">&nbsp;</td>';
    11211120
    11221121        $daysinmonth = intval(date('t', $unixmonth));
     
    11321131
    11331132                if ( in_array($day, $daywithpost) ) // any posts today?
    1134                                 echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"" . esc_attr($ak_titles_for_day[$day]) . "\">$day</a>";
     1133                                echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>";
    11351134                else
    11361135                        echo $day;
     
    11431142        $pad = 7 - calendar_week_mod(date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear))-$week_begins);
    11441143        if ( $pad != 0 && $pad != 7 )
    1145                 echo "\n\t\t".'<td class="pad" colspan="'. esc_attr($pad) .'">&nbsp;</td>';
     1144                echo "\n\t\t".'<td class="pad" colspan="'.$pad.'">&nbsp;</td>';
    11461145
    11471146        echo "\n\t</tr>\n\t</tbody>\n\t</table>";
Note: See TracChangeset for help on using the changeset viewer.