Skip to content

Commit

Permalink
Correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 22, 2023
1 parent a9b0768 commit fea21d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mt-add-to-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit fea21d4

Please sign in to comment.