mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
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) )
|
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
Block a user