Hello,
EventBrite tickets were not showing on my event pages, and troubleshooting the issue I think I’ve uncovered a bug.
It appears that there’s a typo in
the-events-calendar-eventbrite-tickets/src/Tribe/API.php
that prevents the function is_live() from returning true. Line 1152 reads:
if ( empty( $event->ticket_classes ) || in_array( $event->status, $this->live_statuses ) ) {
It seems to me that this should read:
if ( empty( $event->ticket_classes ) || !in_array( $event->status, $this->live_statuses ) ) {
“NOT in_array” rather than “in_array”.
Indeed fixing this line in this way causes tickets to appear correctly on my site.
So is this indeed a bug, or have I misunderstood how this code is supposed to work?
Thanks!