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.

git-svn-id: https://develop.svn.wordpress.org/trunk@51970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Tonya Mork 2021-11-01 22:35:43 +00:00
parent 054dac262f
commit d9bb269a31

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'] ) )
);
}
?>