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
This commit is contained in:
ryan 2009-09-28 22:32:27 +00:00
parent 5224680c4d
commit 8fc7ea66af
1 changed files with 5 additions and 0 deletions

View File

@ -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 );