Support » Plugin: Email Subscribers & Newsletters - Simple and Effective Email Marketing WordPress Plugin » Optin confirmation bug for existing unsubscribed lists

  • Resolved staxwp

    (@staxwp)


    Hi there, first of all thanks for a cool plugin.
    I found a bug when you already unsubscribed for a list and you subscribe to a different list, then the system will subscribe you to all lists.
    I checked the code and it needs adjustment here: method edit_subscriber_status in class-es-db-lists-contacts.php since it updates all lists no matter the status so I think it should just update the ones with ‘unconfirmed’ status

    if ( 'subscribed' === $status ) {
    			return $wpdb->query(
    				$wpdb->prepare(
    					"UPDATE {$wpdb->prefix}ig_lists_contacts SET status = %s, subscribed_at = %s WHERE FIND_IN_SET(contact_id, %s)",
    					array(
    						$status,
    						$current_date,
    						$ids_str
    					)
    				)
    			);
    		}

    Let me know. thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Asmi Patel

    (@asmipatel)

    Hello,

    Thank you for taking out the time and writing it down to us. We really appreciate your efforts in checking out the code as well.
    And I would like to inform that we have fixed this issue and it will be incorporated in the next release of Email Subscribers.

    Thank You !

    That is great news! Thank you very much

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.