Ticket #2461: 2461-2.patch
| File 2461-2.patch, 0.7 kB (added by pishmishy, 5 months ago) |
|---|
-
wp-includes/category-template.php
old new 199 199 'hide_empty' => 1, 'child_of' => 0, 200 200 'exclude' => '', 'echo' => 1, 201 201 'selected' => 0, 'hierarchical' => 0, 202 'name' => 'cat', 'class' => 'postform' 202 'name' => 'cat', 'class' => 'postform', 203 'depth' => 0 203 204 ); 204 205 205 206 $defaults['selected'] = ( is_category() ) ? get_query_var('cat') : 0; … … 225 226 } 226 227 227 228 if ( $hierarchical ) 228 $depth = 0; // Walk the full depth.229 $depth = $r['$depth']; // Walk the full depth. 229 230 else 230 231 $depth = -1; // Flat. 231 232
