diff --git a/includes/ComingSoon.php b/includes/ComingSoon.php index db8199a..6291cda 100644 --- a/includes/ComingSoon.php +++ b/includes/ComingSoon.php @@ -246,7 +246,7 @@ public function notice_display() { * Load the coming soon page, if necessary. */ public function maybe_load_template() { - if ( ! is_user_logged_in() || 'preview=coming_soon' === $_SERVER['QUERY_STRING'] ) { + if ( ! is_user_logged_in() || ( isset( $_SERVER['QUERY_STRING'] ) && 'preview=coming_soon' === $_SERVER['QUERY_STRING'] ) ) { if ( isComingSoonActive() ) { self::coming_soon_content( $this->args ); die();