Make WordPress Core


Ignore:
Timestamp:
05/07/2008 07:10:36 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.