From 4160fafdcda2bbf343fd5b753a4aa215b19f7e72 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 13 May 2005 21:13:13 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=1331 - Hat tip: Mike the Magnificant git-svn-id: http://svn.automattic.com/wordpress/trunk@2603 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index 48242d8d19..7cc72acebf 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -288,13 +288,13 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde } if ( $optiondates ) { - $cat_dates = $wpdb->get_results(" SELECT cat_ID, + $cat_dates = $wpdb->get_results(" SELECT category_id, UNIX_TIMESTAMP( MAX(post_date) ) AS ts FROM $wpdb->posts, $wpdb->post2cat WHERE post_status = 'publish' AND post_id = ID $exclusions GROUP BY category_id"); foreach ($cat_dates as $cat_date) { - $category_timestamp["$cat_date->cat_ID"] = $cat_date->ts; + $category_timestamp["$cat_date->category_id"] = $cat_date->ts; } }