WordPress.org

Make WordPress Core

Ticket #47298: 47298.2.diff

File 47298.2.diff, 2.8 KB (added by mukesh27, 17 months ago)

Updated patch.

  • wp-admin/js/site-health.js

    diff --git a/wp-admin/js/site-health.js b/wp-admin/js/site-health.js
    index a8aa67b74b..a1f965073d 100644
    a b jQuery( document ).ready( function( $ ) { 
    6565                count = SiteHealth.site_status.issues[ issue.status ];
    6666
    6767                if ( 'critical' === issue.status ) {
    68                         heading = sprintf( _n( '%s Critical issue', '%s Critical issues', count ), '<span class="issue-count">' + count + '</span>' );
     68                        heading = sprintf( _n( '%s critical issue', '%s critical issues', count ), '<span class="issue-count">' + count + '</span>' );
    6969                } else if ( 'recommended' === issue.status ) {
    70                         heading = sprintf( _n( '%s Recommended improvement', '%s Recommended improvements', count ), '<span class="issue-count">' + count + '</span>' );
     70                        heading = sprintf( _n( '%s recommended improvement', '%s recommended improvements', count ), '<span class="issue-count">' + count + '</span>' );
    7171                } else if ( 'good' === issue.status ) {
    72                         heading = sprintf( _n( '%s Item with no issues detected', '%s Items with no issues detected', count ), '<span class="issue-count">' + count + '</span>' );
     72                        heading = sprintf( _n( '%s item with no issues detected', '%s items with no issues detected', count ), '<span class="issue-count">' + count + '</span>' );
    7373                }
    7474
    7575                if ( heading ) {
  • wp-admin/site-health.php

    diff --git a/wp-admin/site-health.php b/wp-admin/site-health.php
    index 2c5962675e..83675d84e6 100644
    a b require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    9393                        <h3 class="site-health-issue-count-title">
    9494                                <?php
    9595                                        /* translators: %s: number of critical issues found */
    96                                         printf( _n( '%s Critical issue', '%s Critical issues', 0 ), '<span class="issue-count">0</span>' );
     96                                        printf( _n( '%s critical issue', '%s critical issues', 0 ), '<span class="issue-count">0</span>' );
    9797                                ?>
    9898                        </h3>
    9999
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    104104                        <h3 class="site-health-issue-count-title">
    105105                                <?php
    106106                                        /* translators: %s: number of recommended improvements */
    107                                         printf( _n( '%s Recommended improvement', '%s Recommended improvements', 0 ), '<span class="issue-count">0</span>' );
     107                                        printf( _n( '%s recommended improvement', '%s recommended improvements', 0 ), '<span class="issue-count">0</span>' );
    108108                                ?>
    109109                        </h3>
    110110
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    123123                <h3 class="site-health-issue-count-title">
    124124                        <?php
    125125                                /* translators: %s: number of items with no issues */
    126                                 printf( _n( '%s Item with no issues detected', '%s Items with no issues detected', 0 ), '<span class="issue-count">0</span>' );
     126                                printf( _n( '%s item with no issues detected', '%s items with no issues detected', 0 ), '<span class="issue-count">0</span>' );
    127127                        ?>
    128128                </h3>
    129129