Ticket #6928: wp_list_categories-current_category.diff
File wp_list_categories-current_category.diff, 870 bytes (added by , 16 years ago) |
---|
-
wp-includes/category-template.php
272 272 'style' => 'list', 'show_count' => 0, 273 273 'hide_empty' => 1, 'use_desc_for_title' => 1, 274 274 'child_of' => 0, 'feed' => '', 'feed_type' => '', 275 'feed_image' => '', 'exclude' => '', 275 'feed_image' => '', 'exclude' => '', 'current_category' => 0, 276 276 'hierarchical' => true, 'title_li' => __('Categories'), 277 277 'echo' => 1, 'depth' => 0 278 278 ); … … 309 309 else 310 310 $output .= '<a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a>'; 311 311 312 if ( is_category() )312 if ( empty( $r['current_category'] ) && is_category() ) 313 313 $r['current_category'] = $wp_query->get_queried_object_id(); 314 314 315 315 if ( $hierarchical )