Skip to content

Commit d694bf9

Browse files
authored
Structured Data: Don't fatal if Camptix isn't enabled.
1 parent 9fb6f7a commit d694bf9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

public_html/wp-content/mu-plugins/structured-data.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ function build_event_payload( WP_Post $wordcamp ) {
9090
return false;
9191
}
9292

93+
if ( empty( $camptix ) ) {
94+
return false;
95+
}
96+
9397
$active_tickets = $camptix->get_active_tickets();
9498

9599
if ( ! $active_tickets ) {

0 commit comments

Comments
 (0)