Changeset 5265

Show
Ignore:
Timestamp:
04/13/07 23:20:14 (2 years ago)
Author:
rob1n
Message:

Respect show_option_all in wp_list_categories(). Props westi. fixes #4145

Files:

Legend:

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

    r5235 r5265  
    249249    } else { 
    250250        global $wp_query; 
    251  
     251         
     252        if( !empty($show_option_all) ) 
     253            if ('list' == $style )   
     254                $output .= '<li><a href="' .  get_bloginfo('url')  . '">' . $show_option_all . '</a></li>'; 
     255            else 
     256                $output .= '<a href="' .  get_bloginfo('url')  . '">' . $show_option_all . '</a>'; 
     257         
    252258        if ( is_category() ) 
    253259            $r['current_category'] = $wp_query->get_queried_object_id();