Ticket #5004: categorydepth.diff
| File categorydepth.diff, 0.7 kB (added by intoxination, 1 year ago) |
|---|
-
wp-includes/category-template.php
old new 250 250 'child_of' => 0, 'feed' => '', 251 251 'feed_image' => '', 'exclude' => '', 252 252 'hierarchical' => true, 'title_li' => __('Categories'), 253 'echo' => 1 253 'echo' => 1, 'depth' => 0 254 254 ); 255 255 256 256 $r = wp_parse_args( $args, $defaults ); … … 288 288 if ( is_category() ) 289 289 $r['current_category'] = $wp_query->get_queried_object_id(); 290 290 291 if ( $hierarchical ) 292 $depth = 0; // Walk the full depth. 293 else 291 if ( !$hierarchical ) 294 292 $depth = -1; // Flat. 295 293 296 294 $output .= walk_category_tree($categories, $depth, $r);
