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