Changeset 3033 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 11/10/2005 11:42:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r3011 r3033 273 273 274 274 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) { 275 global $wpdb, $category_posts ;275 global $wpdb, $category_posts, $wp_query;; 276 276 // Optiondates now works 277 277 if ( '' == $file ) … … 382 382 } 383 383 384 if ( $list ) 385 $thelist .= "\t<li>$link\n"; 386 else 384 if ( $list ) { 385 $thelist .= "\t<li"; 386 if (($category->cat_ID == $wp_query->get_queried_object_id()) && is_category()) { 387 $thelist .= ' class="current-cat"'; 388 } 389 $thelist .= ">$link\n"; 390 } else { 387 391 $thelist .= "\t$link<br />\n"; 392 } 388 393 389 394 if ($hierarchical && $children)
Note: See TracChangeset
for help on using the changeset viewer.