From f0b7447c517603690cd1e3708ae99c751e8a6f1c Mon Sep 17 00:00:00 2001 From: Miguel Fonseca Date: Fri, 12 Jan 2018 13:27:14 +0100 Subject: [PATCH] Fix warning plugin activation Guard against undefined constant GUTENBERG_DEVELOPMENT_MODE. --- gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gutenberg.php b/gutenberg.php index 63aa4b8b0fef0..2e0325cbd3ce1 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -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; }