From c4def344757514027373347b076f3b85a3875688 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 12 Feb 2006 08:00:54 +0000 Subject: [PATCH] i18n fix for next month links from bob58. fixes #2399 git-svn-id: https://develop.svn.wordpress.org/trunk@3518 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-general.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 254ce02ca6..3994633ec7 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -480,7 +480,8 @@ function get_calendar($daylength = 1) { if ( $previous ) { echo "\n\t\t".'« ' . $month_abbrev[$month[zeroise($previous->month, 2)]] . ''; + get_month_link($previous->year, $previous->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $month[zeroise($previous->month, 2)], + date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year))) . '">« ' . $month_abbrev[$month[zeroise($previous->month, 2)]] . ''; } else { echo "\n\t\t".' '; } @@ -489,8 +490,8 @@ function get_calendar($daylength = 1) { if ( $next ) { echo "\n\t\t".'' . $month_abbrev[$month[zeroise($next->month, 2)]] . ' »'; + get_month_link($next->year, $next->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $month[zeroise($next->month, 2)], + date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) . '">' . $month_abbrev[$month[zeroise($next->month, 2)]] . ' »'; } else { echo "\n\t\t".' '; }