WordPress.org

Make WordPress Core

Changeset 6595


Ignore:
Timestamp:
01/10/2008 09:51:00 PM (10 years ago)
Author:
ryan
Message:

Add depth arg to wp_list_categories(). Props pishmishy. see #2461

File:
1 edited

Legend:

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

    r6551 r6595  
    251251        'feed_image' => '', 'exclude' => '',
    252252        'hierarchical' => true, 'title_li' => __('Categories'),
    253         'echo' => 1
     253        'echo' => 1, 'depth' => 0
    254254    );
    255255
     
    290290
    291291        if ( $hierarchical )
    292             $depth = 0;  // Walk the full depth.
     292            $depth = $r['depth'];
    293293        else
    294294            $depth = -1; // Flat.
Note: See TracChangeset for help on using the changeset viewer.