Add some missing number i18n in `Walker_Category` and `Walker_CategoryDropdown`. Fixes #22745.
git-svn-id: https://develop.svn.wordpress.org/trunk@27329 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
07f14d6434
commit
6def67ad04
|
@ -889,7 +889,7 @@ class Walker_Category extends Walker {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($show_count) )
|
if ( !empty($show_count) )
|
||||||
$link .= ' (' . intval($category->count) . ')';
|
$link .= ' (' . number_format_i18n( $category->count ) . ')';
|
||||||
|
|
||||||
if ( 'list' == $args['style'] ) {
|
if ( 'list' == $args['style'] ) {
|
||||||
$output .= "\t<li";
|
$output .= "\t<li";
|
||||||
|
@ -973,7 +973,7 @@ class Walker_CategoryDropdown extends Walker {
|
||||||
$output .= '>';
|
$output .= '>';
|
||||||
$output .= $pad.$cat_name;
|
$output .= $pad.$cat_name;
|
||||||
if ( $args['show_count'] )
|
if ( $args['show_count'] )
|
||||||
$output .= ' ('. $category->count .')';
|
$output .= ' ('. number_format_i18n( $category->count ) .')';
|
||||||
$output .= "</option>\n";
|
$output .= "</option>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue