Make WordPress Core

Changeset 51970


Ignore:
Timestamp:
11/01/2021 10:35:43 PM (3 years ago)
Author:
hellofromTonya
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-health-info.php

    r50764 r51970  
    7676
    7777                        if ( isset( $details['show_count'] ) && $details['show_count'] ) {
    78                             printf( '(%d)', count( $details['fields'] ) );
     78                            printf(
     79                                '(%s)',
     80                                number_format_i18n( count( $details['fields'] ) )
     81                            );
    7982                        }
    8083
Note: See TracChangeset for help on using the changeset viewer.