Fix for bug #0000062: calendar no longer highlights _today_ for previous years.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1645031f44
commit
33900801ce
|
@ -437,7 +437,7 @@ function get_calendar($daylength = 1) {
|
||||||
echo "\n\t</tr>\n\t<tr>\n\t\t";
|
echo "\n\t</tr>\n\t<tr>\n\t\t";
|
||||||
$newrow = false;
|
$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">';
|
echo '<td id="today">';
|
||||||
else
|
else
|
||||||
echo '<td>';
|
echo '<td>';
|
||||||
|
|
Loading…
Reference in New Issue