WordPress.org

Make WordPress Core

Ticket #9715: 9715.diff

File 9715.diff, 636 bytes (added by scohoust, 9 years ago)
  • Users/Scott/Sites/wp/trunk/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