HubSpot – Free Marketing Plugin for WordPress - Version 4.1.1

Version Description

(2015.07.14) = - Bug fix for upgraded installs from the plugin directory running through the migration process

Download this release

Release Info

Developer leadin
Plugin Icon 128x128 HubSpot – Free Marketing Plugin for WordPress
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1 to 4.1.1

Files changed (4) hide show
  1. admin/leadin-admin.php +12 -1
  2. inc/leadin-functions.php +0 -1
  3. leadin.php +3 -3
  4. readme.txt +6 -3
admin/leadin-admin.php CHANGED
@@ -40,9 +40,13 @@ class WPLeadInAdmin {
40
  // Hooks & Filters
41
  //=============================================
42
 
43
- $options = get_option('leadin_options');
44
 
45
  $this->action = $this->leadin_current_action();
 
 
 
 
46
 
47
  add_action('admin_menu', array(&$this, 'leadin_add_menu_items'));
48
  add_action('admin_print_scripts', array(&$this, 'add_leadin_admin_scripts'));
@@ -50,6 +54,13 @@ class WPLeadInAdmin {
50
 
51
  }
52
 
 
 
 
 
 
 
 
53
  //=============================================
54
  // Menus
55
  //=============================================
40
  // Hooks & Filters
41
  //=============================================
42
 
43
+ $plugin_version = get_option('leadin_pluginVersion');
44
 
45
  $this->action = $this->leadin_current_action();
46
+
47
+ // If the plugin version matches the latest version escape the update function
48
+ if ( $plugin_version != LEADIN_PLUGIN_VERSION )
49
+ self::leadin_update_check();
50
 
51
  add_action('admin_menu', array(&$this, 'leadin_add_menu_items'));
52
  add_action('admin_print_scripts', array(&$this, 'add_leadin_admin_scripts'));
54
 
55
  }
56
 
57
+ function leadin_update_check ()
58
+ {
59
+ leadin_maybe_add_migration_db_columns();
60
+
61
+ update_option('leadin_pluginVersion', LEADIN_PLUGIN_VERSION);
62
+ }
63
+
64
  //=============================================
65
  // Menus
66
  //=============================================
inc/leadin-functions.php CHANGED
@@ -1023,7 +1023,6 @@ function leadin_check_migration_status()
1023
 
1024
  function leadin_maybe_add_migration_db_columns ()
1025
  {
1026
-
1027
  global $wpdb;
1028
 
1029
  $wpdb->li_submissions = ( is_multisite() ? $wpdb->prefix . 'li_submissions' : 'li_submissions' );
1023
 
1024
  function leadin_maybe_add_migration_db_columns ()
1025
  {
 
1026
  global $wpdb;
1027
 
1028
  $wpdb->li_submissions = ( is_multisite() ? $wpdb->prefix . 'li_submissions' : 'li_submissions' );
leadin.php CHANGED
@@ -3,8 +3,8 @@
3
  Plugin Name: Leadin
4
  Plugin URI: http://leadin.com
5
  Description: Leadin is an easy-to-use marketing automation and lead tracking plugin for WordPress that helps you better understand your web site visitors.
6
- Version: 4.1.0
7
- Author: Andy Cook, Nelson Joyce
8
  Author URI: http://leadin.com
9
  License: GPL2
10
  */
@@ -29,7 +29,7 @@ if ( !defined('LEADIN_DB_VERSION') )
29
  define('LEADIN_DB_VERSION', '2.2.5');
30
 
31
  if ( !defined('LEADIN_PLUGIN_VERSION') )
32
- define('LEADIN_PLUGIN_VERSION', '4.1.0');
33
 
34
  if ( !defined('LEADIN_SEGMENT_WRITE_KEY') )
35
  define('LEADIN_SEGMENT_WRITE_KEY', '1jPKDqXIRKMzEX7zv4eqlqELGXcDq6NT');
3
  Plugin Name: Leadin
4
  Plugin URI: http://leadin.com
5
  Description: Leadin is an easy-to-use marketing automation and lead tracking plugin for WordPress that helps you better understand your web site visitors.
6
+ Version: 4.1.1
7
+ Author: Leadin
8
  Author URI: http://leadin.com
9
  License: GPL2
10
  */
29
  define('LEADIN_DB_VERSION', '2.2.5');
30
 
31
  if ( !defined('LEADIN_PLUGIN_VERSION') )
32
+ define('LEADIN_PLUGIN_VERSION', '4.1.1');
33
 
34
  if ( !defined('LEADIN_SEGMENT_WRITE_KEY') )
35
  define('LEADIN_SEGMENT_WRITE_KEY', '1jPKDqXIRKMzEX7zv4eqlqELGXcDq6NT');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: leadin, sredmond
3
  Tags: crm, contacts, lead tracking, click tracking, visitor tracking, analytics, marketing automation, inbound marketing, subscription, marketing, lead generation, mailchimp, constant contact, newsletter, popup, popover, email list, email, contacts database, contact form, forms, form widget, popup form
4
  Requires at least: 3.7
5
  Tested up to: 4.2.2
6
- Stable tag: 4.1.0
7
 
8
  Leadin is an easy-to-use marketing automation and lead tracking plugin for WordPress that helps you better understand your web site visitors.
9
 
@@ -68,8 +68,11 @@ Having trouble? Check out our <a href="http://support.leadin.com/" target="_blan
68
 
69
  == Changelog ==
70
 
71
- - Current version: 4.1.0
72
- - Current version release: 2015-07-10
 
 
 
73
 
74
  = 4.1.0 (2015.07.10) =
75
  - Migration script added to move data from MySQL to Leadin Cloud
3
  Tags: crm, contacts, lead tracking, click tracking, visitor tracking, analytics, marketing automation, inbound marketing, subscription, marketing, lead generation, mailchimp, constant contact, newsletter, popup, popover, email list, email, contacts database, contact form, forms, form widget, popup form
4
  Requires at least: 3.7
5
  Tested up to: 4.2.2
6
+ Stable tag: 4.1.1
7
 
8
  Leadin is an easy-to-use marketing automation and lead tracking plugin for WordPress that helps you better understand your web site visitors.
9
 
68
 
69
  == Changelog ==
70
 
71
+ - Current version: 4.1.1
72
+ - Current version release: 2015-07-14
73
+
74
+ = 4.1.1 (2015.07.14) =
75
+ - Bug fix for upgraded installs from the plugin directory running through the migration process
76
 
77
  = 4.1.0 (2015.07.10) =
78
  - Migration script added to move data from MySQL to Leadin Cloud