Make WordPress Core

Changeset 6690


Ignore:
Timestamp:
01/30/2008 08:07:52 PM (17 years ago)
Author:
ryan
Message:

Add depth arg to wp_dropdown_categories(). Props pishmishy. fixes #2461

File:
1 edited

Legend:

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

    r6616 r6690  
    200200        'exclude' => '', 'echo' => 1,
    201201        'selected' => 0, 'hierarchical' => 0,
    202         'name' => 'cat', 'class' => 'postform'
     202        'name' => 'cat', 'class' => 'postform',
     203        'depth' => 0
    203204    );
    204205
     
    226227
    227228        if ( $hierarchical )
    228             $depth = 0;  // Walk the full depth.
     229            $depth = $r['$depth'];  // Walk the full depth.
    229230        else
    230231            $depth = -1; // Flat.
Note: See TracChangeset for help on using the changeset viewer.