Changeset 7903

Show
Ignore:
Timestamp:
05/07/08 19:10:36 (2 months ago)
Author:
ryan
Message:

Add current_category option to wp_list_categories(). Props filosofo. fixes #6928

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/category-template.php

    r7792 r7903  
    273273        'hide_empty' => 1, 'use_desc_for_title' => 1, 
    274274        'child_of' => 0, 'feed' => '', 'feed_type' => '', 
    275         'feed_image' => '', 'exclude' => '', 
     275        'feed_image' => '', 'exclude' => '', 'current_category' => 0, 
    276276        'hierarchical' => true, 'title_li' => __('Categories'), 
    277277        'echo' => 1, 'depth' => 0 
     
    310310                $output .= '<a href="' .  get_bloginfo('url')  . '">' . $show_option_all . '</a>'; 
    311311 
    312         if ( is_category() ) 
     312        if ( empty( $r['current_category'] ) && is_category() ) 
    313313            $r['current_category'] = $wp_query->get_queried_object_id(); 
    314314