From 7ddf41069e3cf4d3ead48449a82d57fc86ad5c4d Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 19 Feb 2006 11:25:30 +0000 Subject: [PATCH] i18n fix for next month links from bob58. fixes #2399 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3557 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 1fcda253ff..b52b4167b8 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -482,7 +482,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".' '; } @@ -491,8 +492,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".' '; }