mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 01:39:04 +00:00
Pad counts in wp_dropdown_categories. Props mtdewvirus. fixes #10870
git-svn-id: https://develop.svn.wordpress.org/trunk@11981 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user