Changeset 44359 for trunk/src/wp-admin
- Timestamp:
- 12/24/2018 01:28:22 PM (6 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin
-
Property
svn:ignore
set to
js
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css
-
Property
svn:ignore
set to
*.min.css
*-rtl.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css/colors/blue
-
Property
svn:ignore
set to
*.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css/colors/coffee
-
Property
svn:ignore
set to
*.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css/colors/ectoplasm
-
Property
svn:ignore
set to
*.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css/colors/light
-
Property
svn:ignore
set to
*.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css/colors/midnight
-
Property
svn:ignore
set to
*.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css/colors/ocean
-
Property
svn:ignore
set to
*.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/css/colors/sunrise
-
Property
svn:ignore
set to
*.css
-
Property
svn:ignore
set to
-
trunk/src/wp-admin/index.php
r43571 r44359 2 2 3 3 /** 4 * Note: this file exists only to remind developers to run WordPress from the5 * build directory. For the real wp-admin/index.php that gets built and boots6 * the WordPress admin,please refer to wp-admin/_index.php.4 * Note: this file exists only to remind developers to build the assets. 5 * For the real wp-admin/index.php that gets built and boots WordPress, 6 * please refer to wp-admin/_index.php. 7 7 */ 8 9 if ( file_exists( dirname( __FILE__ ) . '/../wp-includes/js/dist/edit-post.js' ) ) { 10 require_once dirname( __FILE__ ) . '/_index.php'; 11 return; 12 } 8 13 9 14 /** Define ABSPATH as this file's directory */ … … 27 32 // Die with an error message 28 33 $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>'; 35 $die .= '<p>' . sprintf( 36 /* translators: %s: WordPress */ 37 __( 'You can build %s by running:' ), 34 /* translators: %1$s: WordPress */ 35 __( 'You are running %1$s without JavaScript and CSS files. These need to be built.' ), 38 36 'WordPress' 39 37 ) . '</p>'; 40 $die .= '<p><code>npm install && grunt build</code></p>'; 38 39 $die .= '<p>' . __( 'Before running any grunt tasks you need to make sure the dependencies are installed. You can install these by running '); 40 $die .= '<code style="color: green;">npm install</code>.</p>'; 41 42 $die .= '<ul>'; 43 $die .= '<li>' . sprintf( 44 /* translators: %s: WordPress */ 45 __( 'To build %s while developing run:' ), 46 'WordPress' 47 ) . '<br /><br />'; 48 $die .= '<code style="color: green;">grunt build --dev</code></li>'; 49 $die .= '<li>' . sprintf( 50 __( 'To build files automatically when changing the source files run:' ), 51 'WordPress' 52 ) . '<br /><br />'; 53 $die .= '<code style="color: green;">grunt watch</code></li>'; 54 $die .= '<li>' . sprintf( 55 __( 'To create a production build of %s run:' ), 56 'WordPress' 57 ) . '<br /><br />'; 58 $die .= '<code style="color: green;">grunt build</code></li>'; 59 $die .= '</ul>'; 60 61 41 62 $die .= '<p>' . sprintf( 42 63 /* 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>';64 __( '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>'; 48 69 49 70 wp_die( $die, __( 'WordPress › Error' ) );
Note: See TracChangeset
for help on using the changeset viewer.