Add some missing number i18n in `Walker_Category` and `Walker_CategoryDropdown`. Fixes #22745.
Built from https://develop.svn.wordpress.org/trunk@27329 git-svn-id: http://core.svn.wordpress.org/trunk@27181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e92770ba93
commit
412ea898c0
|
@ -889,7 +889,7 @@ class Walker_Category extends Walker {
|
|||
}
|
||||
|
||||
if ( !empty($show_count) )
|
||||
$link .= ' (' . intval($category->count) . ')';
|
||||
$link .= ' (' . number_format_i18n( $category->count ) . ')';
|
||||
|
||||
if ( 'list' == $args['style'] ) {
|
||||
$output .= "\t<li";
|
||||
|
@ -973,7 +973,7 @@ class Walker_CategoryDropdown extends Walker {
|
|||
$output .= '>';
|
||||
$output .= $pad.$cat_name;
|
||||
if ( $args['show_count'] )
|
||||
$output .= ' ('. $category->count .')';
|
||||
$output .= ' ('. number_format_i18n( $category->count ) .')';
|
||||
$output .= "</option>\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue