Plugin Directory

Changeset 2129944


Ignore:
Timestamp:
07/29/2019 05:01:41 AM (7 years ago)
Author:
davidhme
Message:

Deploy campaign-monitor-wp v2.4.1

Location:
campaign-monitor-wp/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • campaign-monitor-wp/trunk/campaign-monitor-wp.php

    r2044988 r2129944  
    55    Description: Campaign Monitor Optin Cat Helps You Get More Email Subscribers. Create Beautiful Campaign Monitor Opt-In Forms In Less Than 2 Minutes.
    66    Author: Fatcat Apps
    7     Version: 2.4.0
     7    Version: 2.4.1
    88    Author URI: https://fatcatapps.com/
    99*/
     
    1919define( 'FCA_EOI_PLUGIN_SLUG', 'campaign-monitor-wp' );
    2020define( 'FCA_EOI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    21 define( 'FCA_EOI_VER', '2.4.0' );
     21define( 'FCA_EOI_VER', '2.4.1' );
    2222
    2323if( ! defined ( 'FCA_EOI_DEBUG' ) ) {
  • campaign-monitor-wp/trunk/includes/eoi-subscribers.php

    r1880562 r2129944  
    141141    public function __construct() {
    142142        global $wpdb;
    143         //CREATE THE PEOPLE TABLE
    144143        $this->table_name = $wpdb->prefix . "fca_eoi_subscribers";
    145144       
    146         $sql = "CREATE TABLE $this->table_name (
    147             `id` INT NOT NULL AUTO_INCREMENT,
    148             `email` LONGTEXT,
    149             `name` LONGTEXT,
    150             `time` DATETIME,
    151             `timezone` LONGTEXT,
    152             `campaign_id` INT,
    153             `status` LONGTEXT,
    154             `consent_granted` LONGTEXT,
    155             `consent_msg` LONGTEXT,
    156             PRIMARY KEY  (id)
    157         );";
    158         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    159         dbDelta( $sql );
    160    
     145        $subscribers_table_ver = get_option( 'fca_eoi_subscribers_table_ver' );
     146        if ( version_compare( $subscribers_table_ver, '1.0.0', '<' ) ) {
     147            //CREATE THE PEOPLE TABLE
     148            $sql = "CREATE TABLE $this->table_name (
     149                `id` INT NOT NULL AUTO_INCREMENT,
     150                `email` LONGTEXT,
     151                `name` LONGTEXT,
     152                `time` DATETIME,
     153                `timezone` LONGTEXT,
     154                `campaign_id` INT,
     155                `status` LONGTEXT,
     156                `consent_granted` LONGTEXT,
     157                `consent_msg` LONGTEXT,
     158                PRIMARY KEY  (id)
     159            );";
     160
     161            require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     162            dbDelta( $sql );
     163
     164            update_option( 'fca_eoi_subscribers_table_ver', '1.0.0' );
     165        }
     166           
    161167        add_action( 'fca_eoi_after_submission', array( $this, 'add_subscriber' ), 10, 2 );
    162168        add_action( 'admin_menu', array( $this, 'register_subscribers_page') );
  • campaign-monitor-wp/trunk/readme.txt

    r2077642 r2129944  
    44Donate link: https://fatcatapps.com/optincat/upgrade/?utm_campaign=descriptioncta&utm_source=httpswordpress.orgpluginscampaign-monitor-wp&utm_medium=referral
    55Requires at least: 3.9.1
    6 Tested up to: 5.2.0
    7 Stable tag: 2.4.0
     6Tested up to: 5.2.2
     7Stable tag: 2.4.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    119119
    120120== Changelog ==
     121
     122= Campaign Monitor Forms by Optin Cat 2.4.0 =
     123* Fix/optimize table creation
     124* Tested up to WordPress 5.2.2
    121125
    122126= Campaign Monitor Forms by Optin Cat 2.4.0 =
Note: See TracChangeset for help on using the changeset viewer.