diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index 6af7e0cbc0..9aa7ab2dd3 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -272,7 +272,7 @@ function wp_list_cats($args = '') { } function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=FALSE, $child_of=0, $categories=0, $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=FALSE) { - global $wpdb, $category_posts; + global $wpdb, $category_posts, $wp_query;; // Optiondates now works if ( '' == $file ) $file = get_settings('home') . '/'; @@ -381,10 +381,15 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde $link .= ' ' . gmdate($optiondates, $category_timestamp["$category->cat_ID"]); } - if ( $list ) - $thelist .= "\t