WordPress.org

Make WordPress Core

Changeset 46199


Ignore:
Timestamp:
09/20/2019 05:25:38 PM (8 weeks ago)
Author:
desrosj
Message:

Site Health: Use sentence casing consistently in header tags.

Props SergeyBiryukov, ajayghaghretiya1, ronakganatra, mukesh27, Clorith.
Fixes #47298.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/site-health.js

    r46106 r46199  
    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
  • trunk/src/wp-admin/site-health.php

    r46106 r46199  
    103103                <?php
    104104                    /* translators: %s: Number of critical issues found. */
    105                     printf( _n( '%s Critical issue', '%s Critical issues', 0 ), '<span class="issue-count">0</span>' );
     105                    printf( _n( '%s critical issue', '%s critical issues', 0 ), '<span class="issue-count">0</span>' );
    106106                ?>
    107107            </h3>
     
    114114                <?php
    115115                    /* translators: %s: Number of recommended improvements. */
    116                     printf( _n( '%s Recommended improvement', '%s Recommended improvements', 0 ), '<span class="issue-count">0</span>' );
     116                    printf( _n( '%s recommended improvement', '%s recommended improvements', 0 ), '<span class="issue-count">0</span>' );
    117117                ?>
    118118            </h3>
     
    133133            <?php
    134134                /* translators: %s: Number of items with no issues. */
    135                 printf( _n( '%s Item with no issues detected', '%s Items with no issues detected', 0 ), '<span class="issue-count">0</span>' );
     135                printf( _n( '%s item with no issues detected', '%s items with no issues detected', 0 ), '<span class="issue-count">0</span>' );
    136136            ?>
    137137        </h3>
Note: See TracChangeset for help on using the changeset viewer.