diff --git a/public_html/wp-content/plugins/camptix/camptix.php b/public_html/wp-content/plugins/camptix/camptix.php index f28a1164f..791f92599 100644 --- a/public_html/wp-content/plugins/camptix/camptix.php +++ b/public_html/wp-content/plugins/camptix/camptix.php @@ -8584,6 +8584,10 @@ public function tmp( $key, $value = null ) { */ public function is_wordcamp_closed() { $wordcamp = get_wordcamp_post(); + // get_wordcamp_post() returns false if no post exists, so avoid breaking by returning here since it is not explicitly closed. + if ( false === $wordcamp ) { + return false; + } return 'wcpt-closed' === $wordcamp->post_status; }