Skip to content

Commit

Permalink
Merge pull request #4429 from WordPress/fix/gutenberg-activation-unde…
Browse files Browse the repository at this point in the history
…fined-constant-warning

Fix warning plugin activation
  • Loading branch information
mcsf authored Jan 12, 2018
2 parents 66303b3 + f0b7447 commit 440d278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function gutenberg_build_files_notice() {
* @since 1.5.0
*/
function gutenberg_pre_init() {
if ( GUTENBERG_DEVELOPMENT_MODE && ! file_exists( dirname( __FILE__ ) . '/blocks/build' ) ) {
if ( defined( 'GUTENBERG_DEVELOPMENT_MODE' ) && GUTENBERG_DEVELOPMENT_MODE && ! file_exists( dirname( __FILE__ ) . '/blocks/build' ) ) {
add_action( 'admin_notices', 'gutenberg_build_files_notice' );
return;
}
Expand Down

0 comments on commit 440d278

Please sign in to comment.