Site Health: Internationalizes count in the info section headings.

If a site health info section includes the `show_count` parameter, this commit internationalizes the count.

Follow-up to [45176].

Props johnbillion, swissspidy.
Fixes #54341.
Built from https://develop.svn.wordpress.org/trunk@51970


git-svn-id: http://core.svn.wordpress.org/trunk@51559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
hellofromTonya 2021-11-01 22:36:59 +00:00
parent a841368a3e
commit 69dc72d0b9
2 changed files with 5 additions and 2 deletions

View File

@ -75,7 +75,10 @@ $health_check_site_status = WP_Site_Health::get_instance();
<?php
if ( isset( $details['show_count'] ) && $details['show_count'] ) {
printf( '(%d)', count( $details['fields'] ) );
printf(
'(%s)',
number_format_i18n( count( $details['fields'] ) )
);
}
?>

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-51969';
$wp_version = '5.9-alpha-51970';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.