Only get titles of published posts.

git-svn-id: http://svn.automattic.com/wordpress/trunk@196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-06-09 01:02:00 +00:00
parent 02fdd8cab2
commit 0e07af22b6
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ $k = 1;
// original tooltip hack by Alex King // original tooltip hack by Alex King
if ($ak_use_tooltip_titles == 1) { 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(); $ak_day_title_array = array();
foreach($ak_days_result as $ak_temp) { foreach($ak_days_result as $ak_temp) {