Skip to content

Commit

Permalink
Clarify that some defines in gutenberg.php are auto-generated
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed Jun 8, 2017
1 parent c192648 commit 67d6c42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/generate-gutenberg-php.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ function print_production_defines() {
}

switch ( trim( $line ) ) {
case '### BEGIN DEFINES':
case '### BEGIN AUTO-GENERATED DEFINES':
$inside_defines = true;
echo $line;
print_production_defines();
break;

case '### END DEFINES':
case '### END AUTO-GENERATED DEFINES':
$inside_defines = false;
echo $line;
break;
Expand Down
4 changes: 2 additions & 2 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

define( 'GUTENBERG__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );

### BEGIN DEFINES
### BEGIN AUTO-GENERATED DEFINES
define( 'GUTENBERG_DEVELOPMENT_MODE', true );
### END DEFINES
### END AUTO-GENERATED DEFINES

require_once dirname( __FILE__ ) . '/lib/blocks.php';
require_once dirname( __FILE__ ) . '/lib/client-assets.php';
Expand Down

0 comments on commit 67d6c42

Please sign in to comment.