Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r42228 r42343  
    7878                    </div>
    7979                    <h3><?php _e( 'Design Locking To Guard Your Changes' ); ?></h3>
    80                     <p><?php _e( 'Ever encounter a scenario where two designers walk into a project and designer A overrides designer B&#8217;s beautiful changes? WordPress 4.9&#8217;s design lock feature (similar to post locking) secures your draft design so that no one can make changes to it or erase all your hard work.' );?></p>
     80                    <p><?php _e( 'Ever encounter a scenario where two designers walk into a project and designer A overrides designer B&#8217;s beautiful changes? WordPress 4.9&#8217;s design lock feature (similar to post locking) secures your draft design so that no one can make changes to it or erase all your hard work.' ); ?></p>
    8181                </div>
    8282                <div class="section-item">
     
    115115                    </div>
    116116                    <h3><?php _e( 'Warning: Potential Danger Ahead!' ); ?></h3>
    117                     <p><?php _e( 'When you edit themes and plugins directly, WordPress 4.9 will politely warn you that this is a dangerous practice. It will recommend that you backup your files before saving, so they don&#8217;t get overwritten by the next update. Take the safe route: your future self will thank you. Your team and customers will thank you.' );?></p>
     117                    <p><?php _e( 'When you edit themes and plugins directly, WordPress 4.9 will politely warn you that this is a dangerous practice. It will recommend that you backup your files before saving, so they don&#8217;t get overwritten by the next update. Take the safe route: your future self will thank you. Your team and customers will thank you.' ); ?></p>
    118118                </div>
    119119            </div>
     
    183183                ?>
    184184            </h2>
    185             <p><?php printf(
    186                 __( 'WordPress is working on a new way to create and control your content and we&#8217;d love to have your help. Interested in being an <a href="%s">early tester</a> or getting involved with the Gutenberg project? <a href="%s">Contribute on GitHub</a>.' ),
     185            <p>
     186            <?php
     187            printf(
     188                __( 'WordPress is working on a new way to create and control your content and we&#8217;d love to have your help. Interested in being an <a href="%1$s">early tester</a> or getting involved with the Gutenberg project? <a href="%2$s">Contribute on GitHub</a>.' ),
    187189                __( 'https://wordpress.org/plugins/gutenberg/' ),
    188                 'https://github.com/WordPress/gutenberg' ); ?></p>
     190                'https://github.com/WordPress/gutenberg'
     191            );
     192                ?>
     193                </p>
    189194        </div>
    190195
     
    192197
    193198        <div class="changelog">
    194             <h2><?php
     199            <h2>
     200            <?php
    195201                printf(
    196202                    /* translators: %s: smiling face with smiling eyes emoji */
     
    198204                    '&#x1F60A'
    199205                );
    200             ?></h2>
     206            ?>
     207            </h2>
    201208
    202209            <div class="under-the-hood two-col">
    203210                <div class="col">
    204211                    <h3><a href="https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/"><?php _e( 'Customizer JS API Improvements' ); ?></a></h3>
    205                     <p><?php
     212                    <p>
     213                    <?php
    206214                        printf(
    207215                            /* translators: %s: https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/  */
     
    209217                            'https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/'
    210218                        );
    211                     ?></p>
     219                    ?>
     220                    </p>
    212221                </div>
    213222                <div class="col">
     
    353362
    354363/* translators: 1: WordPress version number, 2: plural number of bugs. */
    355 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
    356         '<strong>Version %1$s</strong> addressed %2$s bugs.' );
     364_n_noop(
     365    '<strong>Version %1$s</strong> addressed %2$s bug.',
     366    '<strong>Version %1$s</strong> addressed %2$s bugs.'
     367);
    357368
    358369/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
    359 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
    360         '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
     370_n_noop(
     371    '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
     372    '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
     373);
    361374
    362375/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
    363 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
    364         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
     376_n_noop(
     377    '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
     378    '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
     379);
    365380
    366381/* translators: %s: Codex URL */
Note: See TracChangeset for help on using the changeset viewer.