From 4b6aa188cd946e95e4c48bd6d58b3b6f4ca28950 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@2603 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; } }