Skip to content

Commit

Permalink
Use event begin defined earlier for event meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 4, 2024
1 parent 734ec5f commit 62516bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mt-processing.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function mt_ticket_meta( $post_id ) {
update_post_meta( $post_id, '_mc_event_location', $post['mt-event-location'] );
}
update_post_meta( $post_id, '_mc_event_data', $data );
update_post_meta( $post_id, '_mc_event_date', strtotime( $post['event_begin'] ) );
update_post_meta( $post_id, '_mc_event_date', strtotime( $event_begin ) );
mt_save_registration_data( $post_id, $post );
} elseif ( isset( $_POST['mt-tickets-nonce'] ) && ! isset( $_POST['mt-trigger'] ) ) {
delete_post_meta( $post_id, '_mc_event_data' );
Expand Down

0 comments on commit 62516bc

Please sign in to comment.