Changeset 12694 for trunk/wp-includes/category-template.php
- Timestamp:
- 01/11/2010 07:27:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r12598 r12694 338 338 'selected' => 0, 'hierarchical' => 0, 339 339 'name' => 'cat', 'class' => 'postform', 340 'depth' => 0, 'tab_index' => 0 340 'depth' => 0, 'tab_index' => 0, 341 'taxonomy' => 'category', 'hide_if_empty' => false 341 342 ); 342 343 … … 360 361 $class = esc_attr($class); 361 362 362 $output = ''; 363 if ( ! $r['hide_if_empty'] || ! empty($categories) ) 364 $output = "<select name='$name' id='$name' class='$class' $tab_index_attribute>\n"; 365 else 366 $output = ''; 363 367 if ( ! empty( $categories ) ) { 364 $output = "<select name='$name' id='$name' class='$class' $tab_index_attribute>\n";365 368 366 369 if ( $show_option_all ) { … … 382 385 383 386 $output .= walk_category_dropdown_tree( $categories, $depth, $r ); 387 } 388 if ( ! $r['hide_if_empty'] || ! empty($categories) ) 384 389 $output .= "</select>\n"; 385 } 390 386 391 387 392 $output = apply_filters( 'wp_dropdown_cats', $output );
Note: See TracChangeset
for help on using the changeset viewer.