Make WordPress Core

Changeset 44360 for trunk/src/wp-admin


Ignore:
Timestamp:
12/24/2018 01:44:05 PM (6 years ago)
Author:
atimmer
Message:

Build tools: Fix the grunt format:php build.

Re-add variable that was removed on accident by [44359]. Also run grunt format:php to adjust the code style.
.--This line, and those below, will be ignored--

M Gruntfile.js
M src/index.php
M src/wp-admin/index.php
M src/wp-includes/class-wp-block-parser.php

File:
1 edited

Legend:

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

    r44359 r44360  
    3737) . '</p>';
    3838
    39 $die .= '<p>' . __( 'Before running any grunt tasks you need to make sure the dependencies are installed. You can install these by running ');
     39$die .= '<p>' . __( 'Before running any grunt tasks you need to make sure the dependencies are installed. You can install these by running ' );
    4040$die .= '<code style="color: green;">npm install</code>.</p>';
    4141
     
    4444    /* translators: %s: WordPress */
    4545        __( 'To build %s while developing run:' ),
    46         'WordPress'
    47     ) . '<br /><br />';
     46    'WordPress'
     47) . '<br /><br />';
    4848$die .= '<code style="color: green;">grunt build --dev</code></li>';
    4949$die .= '<li>' . sprintf(
    50         __( 'To build files automatically when changing the source files run:' ),
    51         'WordPress'
    52     ) . '<br /><br />';
     50    __( 'To build files automatically when changing the source files run:' ),
     51    'WordPress'
     52) . '<br /><br />';
    5353$die .= '<code style="color: green;">grunt watch</code></li>';
    5454$die .= '<li>' . sprintf(
    55         __( 'To create a production build of %s run:' ),
    56         'WordPress'
    57     ) . '<br /><br />';
     55    __( 'To create a production build of %s run:' ),
     56    'WordPress'
     57) . '<br /><br />';
    5858$die .= '<code style="color: green;">grunt build</code></li>';
    5959$die .= '</ul>';
     
    6363    /* translators: %1$s: NPM URL, %2$s: Grunt URL */
    6464        __( '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>.' ),
    65         'https://www.npmjs.com/',
    66         'https://gruntjs.com/',
    67         __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
    68     ) . '</p>';
     65    'https://www.npmjs.com/',
     66    'https://gruntjs.com/',
     67    __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
     68) . '</p>';
    6969
    7070wp_die( $die, __( 'WordPress &rsaquo; Error' ) );
Note: See TracChangeset for help on using the changeset viewer.