WordPress.org

Make WordPress Core

Ticket #9875: padcount_in_dropdown.diff

File padcount_in_dropdown.diff, 550 bytes (added by petervanderdoes, 9 years ago)
  • wp-includes/category-template.php

     
    344344        $defaults['selected'] = ( is_category() ) ? get_query_var( 'cat' ) : 0;
    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 );
    349354