Plugin Directory

Changeset 2116901


Ignore:
Timestamp:
07/03/2019 12:53:00 PM (7 years ago)
Author:
ehsantikweb
Message:

Support API to subscribe/unsubscribe and tagging 1.1.10

Location:
add-on-gravity-forms-mailpoet
Files:
4 edited
7 copied

Legend:

Unmodified
Added
Removed
  • add-on-gravity-forms-mailpoet/trunk/add-on-gravity-forms-mailpoet.php

    r2116071 r2116901  
    33 * Plugin Name:       Add-on Gravity Forms - Mailpoet 3
    44 * Description:       Add a MailPoet 3 signup field to your Gravity Forms.
    5  * Version:           1.1.10
     5 * Version:           1.1.11
    66 * Author:            Tikweb
    77 * Author URI:        http://www.tikweb.dk/
     
    405405        $wc_segment = Segment::whereEqual('type', Segment::TYPE_WC_USERS)->findArray();
    406406
    407         if (($key = array_search($wp_segment[0]['id'], $mailpoetlists)) || ($key = array_search($wc_segment[0]['id'], $mailpoetlists)) !== FALSE) {
     407        if (($key = array_search($wp_segment[0]['id'], $mailpoetlists)) ) {
     408            unset($mailpoetlists[$key]);
     409        }
     410
     411        if (($key = array_search($wc_segment[0]['id'], $mailpoetlists)) ) {
    408412            unset($mailpoetlists[$key]);
    409413        }
  • add-on-gravity-forms-mailpoet/trunk/changelog.txt

    r2116071 r2116901  
    11== Changelog ==
     2
     3= 1.1.11 - 2019-07-03 =
     4* Support API to subscribe/unsubscribe
    25
    36= 1.1.10 - 2019-07-02 =
  • add-on-gravity-forms-mailpoet/trunk/class-gfnewmailpoetaddon.php

    r2116071 r2116901  
    140140        $wc_segment = Segment::whereEqual('type', Segment::TYPE_WC_USERS)->findArray();
    141141
    142         if (($key = array_search($wp_segment[0]['id'], $mailpoetlists)) || ($key = array_search($wc_segment[0]['id'], $mailpoetlists)) !== FALSE) {
     142        if (($key = array_search($wp_segment[0]['id'], $mailpoetlists)) ) {
     143            unset($mailpoetlists[$key]);
     144        }
     145
     146        if (($key = array_search($wc_segment[0]['id'], $mailpoetlists)) ) {
    143147            unset($mailpoetlists[$key]);
    144148        }
  • add-on-gravity-forms-mailpoet/trunk/readme.txt

    r2116071 r2116901  
    66Tested up to: 5.2.2
    77Requires PHP: 5.2
    8 Stable tag: 1.1.10
     8Stable tag: 1.1.11
    99
    1010Create MailPoet 3 newsletter subscribers from Gravity Form entries.
Note: See TracChangeset for help on using the changeset viewer.