From e309d60bdb6333689db54ef12ac56bf4db927075 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 12 Feb 2006 08:00:54 +0000 Subject: [PATCH] i18n fix for next month links from bob58. fixes #2399 git-svn-id: http://svn.automattic.com/wordpress/trunk@3518 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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".' '; }