Changeset 44664
- Timestamp:
- 01/21/2019 04:59:55 AM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/index.php
r44366 r44664 51 51 /* translators: 1: NPM URL, 2: Grunt URL, 3: Handbook URL */ 52 52 __( '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>.' ), 53 'https://www.npmjs.com/ ',54 'https://gruntjs.com/ ',53 'https://www.npmjs.com/get-npm', 54 'https://gruntjs.com/getting-started', 55 55 __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' ) 56 56 ) . '</p>'; -
trunk/src/wp-admin/index.php
r44366 r44664 12 12 } 13 13 14 /** Define ABSPATH as this file's directory */ 15 if ( ! defined( 'ABSPATH' ) ) { 16 define( 'ABSPATH', dirname( __FILE__ ) . '/../' ); 17 } 18 19 define( 'WPINC', 'wp-includes' ); 20 require_once( ABSPATH . WPINC . '/load.php' ); 21 22 // Standardize $_SERVER variables across setups. 23 wp_fix_server_vars(); 24 25 require_once( ABSPATH . WPINC . '/functions.php' ); 26 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 27 require_once( ABSPATH . WPINC . '/version.php' ); 28 29 wp_check_php_mysql_versions(); 30 wp_load_translations_early(); 31 32 // Die with an error message 33 $die = __( 'You are running WordPress without JavaScript and CSS files. These need to be built.' ) . '</p>'; 34 35 $die .= '<p>' . sprintf( 36 /* translators: %s: npm install */ 37 __( 'Before running any grunt tasks you need to make sure the dependencies are installed. You can install these by running %s.' ), 38 '<code style="color: green;">npm install</code>' 39 ) . '</p>'; 40 41 $die .= '<ul>'; 42 $die .= '<li>' . __( 'To build WordPress while developing, run:' ) . '<br /><br />'; 43 $die .= '<code style="color: green;">grunt build --dev</code></li>'; 44 $die .= '<li>' . __( 'To build files automatically when changing the source files, run:' ) . '<br /><br />'; 45 $die .= '<code style="color: green;">grunt watch</code></li>'; 46 $die .= '<li>' . __( 'To create a production build of WordPress, run:' ) . '<br /><br />'; 47 $die .= '<code style="color: green;">grunt build</code></li>'; 48 $die .= '</ul>'; 49 50 $die .= '<p>' . sprintf( 51 /* translators: 1: NPM URL, 2: Grunt URL, 3: Handbook URL */ 52 __( '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>.' ), 53 'https://www.npmjs.com/', 54 'https://gruntjs.com/', 55 __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' ) 56 ) . '</p>'; 57 58 wp_die( $die, __( 'WordPress › Error' ) ); 14 require_once dirname( dirname( __FILE__ ) ) . '/index.php';
Note: See TracChangeset
for help on using the changeset viewer.