fixing a bug where the next month link was using previous->year instead of next->year

git-svn-id: http://svn.automattic.com/wordpress/trunk@685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-01-02 19:21:50 +00:00
parent be8435d6b7
commit 230d55a93b
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ function get_calendar($daylength = 1) {
if ($next) {
echo "\n\t\t".'<td abbr="' . $month[zeroise($next->month, 2)] . '" colspan="3" id="next"><a href="' .
get_month_link($previous->year, $next->month) . '" title="View posts for ' . $month[zeroise($next->month, 2)] . ' ' .
get_month_link($next->year, $next->month) . '" title="View posts for ' . $month[zeroise($next->month, 2)] . ' ' .
date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year)) . '">' . substr($month[zeroise($next->month, 2)], 0, 3) . ' &raquo;</a></td>';
} else {
echo "\n\t\t".'<td colspan="3" id="next" class="pad">&nbsp;</td>';