From 79cc343c520a78875f928adfb06d6f37c6ca220d Mon Sep 17 00:00:00 2001 From: alex_t_king Date: Mon, 12 Jan 2004 00:14:47 +0000 Subject: [PATCH] made tooltips work with multiple posts per day git-svn-id: http://svn.automattic.com/wordpress/trunk@752 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 46164f6ca..4d24e2260 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 {