From fea21d446273f0f3cfcc4227691218f32eb4fcb0 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Wed, 22 Nov 2023 17:28:52 -0600 Subject: [PATCH] Correct variable name --- src/mt-add-to-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mt-add-to-cart.php b/src/mt-add-to-cart.php index 0e935ac0..111161ef 100644 --- a/src/mt-add-to-cart.php +++ b/src/mt-add-to-cart.php @@ -71,7 +71,7 @@ function mt_check_early_returns( $event_id, $override) { $purchase_page = $options['mt_purchase_page']; $receipt_page = $options['mt_receipt_page']; $tickets_page = $options['mt_tickets_page']; - if ( is_page( $purchase_page ) || is_page( $receipt_page ) || is_page( $tickets_page ) || ! $event ) { + if ( is_page( $purchase_page ) || is_page( $receipt_page ) || is_page( $tickets_page ) || ! $event_id ) { return false; } if ( 'mc-events' === get_post_type( $event_id ) ) {