WordPress.org

Make WordPress Core

Changeset 11981


Ignore:
Timestamp:
09/28/2009 10:32:27 PM (12 years ago)
Author:
ryan
Message:

Pad counts in wp_dropdown_categories. Props mtdewvirus. fixes #10870

File:
1 edited

Legend:

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

    r11900 r11981  
    345345
    346346    $r = wp_parse_args( $args, $defaults );
     347
     348    if ( !isset( $r['pad_counts'] ) && $r['show_count'] && $r['hierarchical'] ) {
     349        $r['pad_counts'] = true;
     350    }
     351
    347352    $r['include_last_update_time'] = $r['show_last_update'];
    348353    extract( $r );
Note: See TracChangeset for help on using the changeset viewer.