WordPress.org

Make WordPress Core

Ticket #47298: 47298-js.diff

File 47298-js.diff, 1.3 KB (added by ronakganatra, 17 months ago)

I think all the small letter would be great because camel case would not look better like it is "item with no issues detected" but if we go to first letter capital on each then it should be like "Item With No Issues Detected"

  • src/js/_enqueues/admin/site-health.js

     
    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 ) {