Skip to content

Commit

Permalink
Fix warning plugin activation
Browse files Browse the repository at this point in the history
Guard against undefined constant GUTENBERG_DEVELOPMENT_MODE.
  • Loading branch information
mcsf committed Jan 12, 2018
1 parent 66303b3 commit f0b7447
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 f0b7447

Please sign in to comment.