From 8fc7ea66afd6facaaf0f5620e1a2d04854381b78 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 28 Sep 2009 22:32:27 +0000 Subject: [PATCH] Pad counts in wp_dropdown_categories. Props mtdewvirus. fixes #10870 git-svn-id: http://svn.automattic.com/wordpress/trunk@11981 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 344ae4708..46f7b90ea 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -344,6 +344,11 @@ function wp_dropdown_categories( $args = '' ) { $defaults['selected'] = ( is_category() ) ? get_query_var( 'cat' ) : 0; $r = wp_parse_args( $args, $defaults ); + + if ( !isset( $r['pad_counts'] ) && $r['show_count'] && $r['hierarchical'] ) { + $r['pad_counts'] = true; + } + $r['include_last_update_time'] = $r['show_last_update']; extract( $r );