Changeset 2129944
- Timestamp:
- 07/29/2019 05:01:41 AM (7 years ago)
- Location:
- campaign-monitor-wp/trunk
- Files:
-
- 3 edited
-
campaign-monitor-wp.php (modified) (2 diffs)
-
includes/eoi-subscribers.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
campaign-monitor-wp/trunk/campaign-monitor-wp.php
r2044988 r2129944 5 5 Description: Campaign Monitor Optin Cat Helps You Get More Email Subscribers. Create Beautiful Campaign Monitor Opt-In Forms In Less Than 2 Minutes. 6 6 Author: Fatcat Apps 7 Version: 2.4. 07 Version: 2.4.1 8 8 Author URI: https://fatcatapps.com/ 9 9 */ … … 19 19 define( 'FCA_EOI_PLUGIN_SLUG', 'campaign-monitor-wp' ); 20 20 define( 'FCA_EOI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 21 define( 'FCA_EOI_VER', '2.4. 0' );21 define( 'FCA_EOI_VER', '2.4.1' ); 22 22 23 23 if( ! defined ( 'FCA_EOI_DEBUG' ) ) { -
campaign-monitor-wp/trunk/includes/eoi-subscribers.php
r1880562 r2129944 141 141 public function __construct() { 142 142 global $wpdb; 143 //CREATE THE PEOPLE TABLE144 143 $this->table_name = $wpdb->prefix . "fca_eoi_subscribers"; 145 144 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 161 167 add_action( 'fca_eoi_after_submission', array( $this, 'add_subscriber' ), 10, 2 ); 162 168 add_action( 'admin_menu', array( $this, 'register_subscribers_page') ); -
campaign-monitor-wp/trunk/readme.txt
r2077642 r2129944 4 4 Donate link: https://fatcatapps.com/optincat/upgrade/?utm_campaign=descriptioncta&utm_source=httpswordpress.orgpluginscampaign-monitor-wp&utm_medium=referral 5 5 Requires at least: 3.9.1 6 Tested up to: 5.2. 07 Stable tag: 2.4. 06 Tested up to: 5.2.2 7 Stable tag: 2.4.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 119 119 120 120 == 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 121 125 122 126 = Campaign Monitor Forms by Optin Cat 2.4.0 =
Note: See TracChangeset
for help on using the changeset viewer.