Make WordPress Core


Ignore:
Timestamp:
06/17/2006 12:05:00 AM (19 years ago)
Author:
ryan
Message:

Use wp_list_categories() in templates.

File:
1 edited

Legend:

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

    r3843 r3881  
    213213        parse_str($args, $r);
    214214
    215     $defaults = array('show_option_all' => '', 'orderby' => 'ID',
    216         'order' => 'asc', 'style' => 'list', 'show_last_update' => 0,
     215    $defaults = array('show_option_all' => '', 'orderby' => 'name',
     216        'order' => 'ASC', 'show_last_update' => 0, 'style' => 'list',
    217217        'show_count' => 0, 'hide_empty' => 1, 'use_desc_for_title' => 1,
    218218        'child_of' => 0, 'feed' => '', 'feed_image' => '', 'exclude' => '',
    219         'hierarchical' => true, 'title_li' => '');
     219        'hierarchical' => true, 'title_li' => __('Categories'));
    220220    $r = array_merge($defaults, $r);
    221221    $r['include_last_update_time'] = $r['show_date'];
     
    225225   
    226226    $output = '';
    227     if ( $title_li && $list )
     227    if ( $title_li && 'list' == $style )
    228228            $output = '<li class="categories">' . $r['title_li'] . '<ul>';
    229229
     
    244244    }
    245245
    246     if ( $title_li && $list )
     246    if ( $title_li && 'list' == $style )
    247247        $output .= '</ul></li>';
    248248           
Note: See TracChangeset for help on using the changeset viewer.