Fix for bug #0000062: calendar no longer highlights _today_ for previous years.

git-svn-id: https://develop.svn.wordpress.org/trunk@1430 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
jverber 2004-06-16 15:45:44 +00:00
parent fa7390a153
commit 150265dd4e
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ function get_calendar($daylength = 1) {
echo "\n\t</tr>\n\t<tr>\n\t\t";
$newrow = false;
if ($day == gmdate('j', (time() + (get_settings('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_settings('gmt_offset') * 3600)))
if ($day == gmdate('j', (time() + (get_settings('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_settings('gmt_offset') * 3600)) && $thisyear == gmdate('Y', time()+(get_settings('gmt_offset') * 3600)))
echo '<td id="today">';
else
echo '<td>';