Skip to content

Commit

Permalink
remove double opt in during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhungate committed Aug 21, 2023
1 parent 02d92bc commit 6e84363
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions admin/class-mailchimp-woocommerce-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1668,14 +1668,6 @@ private function updateMailChimpList( $data = null, $list_id = null ) {

$submission->setContact( $this->address( $data ) );

try {
$submission->setDoi( mailchimp_list_has_double_optin( true ) );
} catch ( Exception $e ) {
add_settings_error( 'list_sync_error', '', __( 'Cannot create or update List at Mailchimp.', 'mailchimp-for-woocommerce' ) . ' ' . $e->getMessage() . ' ' . __( 'Please retry.', 'mailchimp-for-woocommerce' ) );
$this->setData( 'errors.mailchimp_list', $e->getMessage() );
return false;
}

// let's turn this on for debugging purposes.
mailchimp_debug( 'admin', 'list info submission', array( 'submission' => print_r( $submission->getSubmission(), true ) ) );

Expand Down

0 comments on commit 6e84363

Please sign in to comment.