From 30281b10476d16b8334cbdcaba919c4b6ab3ba6f Mon Sep 17 00:00:00 2001 From: Alex King Date: Mon, 12 Jan 2004 00:14:47 +0000 Subject: [PATCH] made tooltips work with multiple posts per day git-svn-id: https://develop.svn.wordpress.org/trunk@752 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index 46164f6ca5..4d24e2260c 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -405,7 +405,8 @@ function get_calendar($daylength = 1) { if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE") || - strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "camino")) { + strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "camino") || + strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "safari")) { $ak_title_separator = "\n"; } else { $ak_title_separator = ", "; @@ -421,7 +422,9 @@ function get_calendar($daylength = 1) { ); if ($ak_post_titles) { foreach ($ak_post_titles as $ak_post_title) { - $ak_titles_for_day["$ak_post_title->dom"] = ''; + if (empty($ak_titles_for_day["day_".$ak_post_title->dom])) { + $ak_titles_for_day["day_".$ak_post_title->dom] = ''; + } if (empty($ak_titles_for_day["$ak_post_title->dom"])) { // first one $ak_titles_for_day["$ak_post_title->dom"] .= htmlspecialchars(stripslashes($ak_post_title->post_title)); } else {