Make WordPress Core


Ignore:
Timestamp:
08/15/2018 06:22:00 AM (7 years ago)
Author:
pento
Message:

Coding Standards: Prepare for upgrading WPCS to 1.0.0.

In order to get the best result when running phpcbf across the codebase, there are some manual tweaks we need to make.

These fall into three categories:

  • Fixing incorrectly indented code which has flow-on effects when auto-fixing.
  • Tweaking the layout of inline PHP inside HTML tags.
  • Moving more complex inline PHP inside HTML tags, to execute earlier.

See #44600.

File:
1 edited

Legend:

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

    r43328 r43569  
    2727// Die with an error message
    2828$die  = sprintf(
    29         /* translators: %1$s: WordPress, %2$s: src, %3$s: build */
    30             __( 'You seem to be running %1$s from the %2$s directory. %1$s needs to be built and run from the %3$s directory before we can get started.' ),
    31             'WordPress',
    32             '<code>src</code>',
    33             '<code>build</code>'
    34         ) . '</p>';
     29    /* translators: %1$s: WordPress, %2$s: src, %3$s: build */
     30    __( 'You seem to be running %1$s from the %2$s directory. %1$s needs to be built and run from the %3$s directory before we can get started.' ),
     31    'WordPress',
     32    '<code>src</code>',
     33    '<code>build</code>'
     34) . '</p>';
    3535$die .= '<p>' . sprintf(
    3636    /* translators: %s: WordPress */
    37         __( 'You can build %s by running:' ),
    38         'WordPress'
    39     ) . '</p>';
     37    __( 'You can build %s by running:' ),
     38    'WordPress'
     39) . '</p>';
    4040$die .= '<p><code>npm install && grunt build</code></p>';
    4141$die .= '<p>' . sprintf(
    4242    /* translators: %1$s: NPM URL, %2$s: Grunt URL */
    43         __( 'This requires <a href="%1$s">NPM</a> and <a href="%2$s">Grunt</a>. <a href="%3$s">Read more about setting up your local development environment</a>.' ),
    44         'https://www.npmjs.com/',
    45         'https://gruntjs.com/',
    46         __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
    47     ) . '</p>';
     43    __( 'This requires <a href="%1$s">NPM</a> and <a href="%2$s">Grunt</a>. <a href="%3$s">Read more about setting up your local development environment</a>.' ),
     44    'https://www.npmjs.com/',
     45    'https://gruntjs.com/',
     46    __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
     47) . '</p>';
    4848
    4949wp_die( $die, __( 'WordPress &rsaquo; Error' ) );
Note: See TracChangeset for help on using the changeset viewer.