Skip to content

Commit

Permalink
Merge pull request #1996 from Automattic/fix/undefined_constant_warni…
Browse files Browse the repository at this point in the history
…ng_in_blogpublic_notice

Wrap blog public notices use of VIP_GO_APP_ENVIRONMENT in a defined check
  • Loading branch information
Brandon Skinner authored Feb 19, 2021
2 parents 2277017 + b28d1bb commit 52a1a8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blogpublic-notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

namespace Automattic\VIP\Blog_Public;

if ( 'production' === VIP_GO_APP_ENVIRONMENT ) {
return;
if ( defined( 'VIP_GO_APP_ENVIRONMENT' ) ) {
if ( 'production' === VIP_GO_APP_ENVIRONMENT ) {
return;
}
}

/**
Expand Down

0 comments on commit 52a1a8a

Please sign in to comment.