From 5b5320fd8f9c9cde85c691f124288eeb2bd52bc4 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 9 Jun 2003 01:02:00 +0000 Subject: [PATCH] Only get titles of published posts. git-svn-id: https://develop.svn.wordpress.org/trunk@196 602fd350-edb4-49c9-b593-d223f7449a82 --- b2calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2calendar.php b/b2calendar.php index f5d6fb3dee..ab352e5679 100644 --- a/b2calendar.php +++ b/b2calendar.php @@ -198,7 +198,7 @@ $k = 1; // original tooltip hack by Alex King if ($ak_use_tooltip_titles == 1) { - $ak_days_result = $wpdb->get_results("SELECT post_title, post_date FROM $tableposts WHERE YEAR(post_date) = '$thisyear' AND MONTH(post_date) = '$thismonth'"); + $ak_days_result = $wpdb->get_results("SELECT post_title, post_date FROM $tableposts WHERE YEAR(post_date) = '$thisyear' AND MONTH(post_date) = '$thismonth' AND post_status = 'publish'"); $ak_day_title_array = array(); foreach($ak_days_result as $ak_temp) {