diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 1d07014..ef8fbcf 100644
|
a
|
b
|
function get_calendar($initial = true) { |
| 667 | 667 | $daywithpost = array(); |
| 668 | 668 | } |
| 669 | 669 | |
| | 670 | // Check what day this post is (if it's a single post) |
| | 671 | if (is_single() && count($posts) == 1) { |
| | 672 | $current_post_day = $wpdb->get_var("SELECT DAYOFMONTH(post_date) |
| | 673 | FROM $wpdb->posts WHERE MONTH(post_date) = '$thismonth' |
| | 674 | AND YEAR(post_date) = '$thisyear' |
| | 675 | AND post_type = 'post' AND post_status = 'publish' |
| | 676 | AND post_date < '" . current_time('mysql') . "' |
| | 677 | AND id = " . $posts[0]->ID . ";"); |
| | 678 | } |
| | 679 | |
| | 680 | |
| | 681 | |
| 670 | 682 | if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'camino') !== false || strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'safari') !== false) |
| 671 | 683 | $ak_title_separator = "\n"; |
| 672 | 684 | else |
| … |
… |
function get_calendar($initial = true) { |
| 707 | 719 | echo "\n\t</tr>\n\t<tr>\n\t\t"; |
| 708 | 720 | $newrow = false; |
| 709 | 721 | |
| 710 | | if ( $day == gmdate('j', (time() + (get_option('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_option('gmt_offset') * 3600)) && $thisyear == gmdate('Y', time()+(get_option('gmt_offset') * 3600)) ) |
| | 722 | if ( $day == gmdate('j', (time() + (get_option('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_option('gmt_offset') * 3600)) && $thisyear == gmdate('Y', time()+(get_option('gmt_offset') * 3600)) ) { |
| 711 | 723 | echo '<td id="today">'; |
| 712 | | else |
| | 724 | } elseif ($day == $current_post_day) { |
| | 725 | echo '<td id="thispost">'; |
| | 726 | } else { |
| 713 | 727 | echo '<td>'; |
| | 728 | } |
| 714 | 729 | |
| 715 | 730 | if ( in_array($day, $daywithpost) ) // any posts today? |
| 716 | 731 | echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>"; |