HubSpot – Free Marketing Plugin for WordPress - Version 2.2.5

Version Description

(2014.11.20) = - Bug fixes - Fixes to bulk action labels - Fixed Add Tag button

Download this release

Release Info

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

Code changes from version 2.2.3 to 2.2.5

admin/inc/class-leadin-list-table.php CHANGED
@@ -168,11 +168,11 @@ class LI_List_Table extends WP_List_Table {
168
  $contact_type = strtolower($this->view_label);
169
  $filtered = ( isset($_GET['filter_action']) ? 'filtered ' : '' );
170
  $actions = array(
171
- 'add_tag_to_all' => 'Add a tag to all ' . $filtered . $contact_type . ' in list',
172
- 'add_tag_to_selected' => 'Add a tag to selected ' . $contact_type,
173
- 'remove_tag_from_all' => 'Remove a tag from all ' . $filtered . $contact_type . ' in list',
174
- 'remove_tag_from_selected' => 'Remove a tag from selected ' . $contact_type,
175
- 'delete_all' => 'Delete all ' . $contact_type . ' from Leadin',
176
  'delete_selected' => 'Delete selected ' . $contact_type . ' from Leadin'
177
  );
178
 
168
  $contact_type = strtolower($this->view_label);
169
  $filtered = ( isset($_GET['filter_action']) ? 'filtered ' : '' );
170
  $actions = array(
171
+ 'add_tag_to_all' => 'Add a tag to every one tagged "' . $filtered . $contact_type . '"',
172
+ 'add_tag_to_selected' => 'Add a tag to selected "' . $contact_type,
173
+ 'remove_tag_from_all' => 'Remove a tag from every one tagged "' . $filtered . $contact_type . '"',
174
+ 'remove_tag_from_selected' => 'Remove a tag from selected "' . $contact_type . '"',
175
+ 'delete_all' => 'Delete every one tagged "' . $contact_type . '" from Leadin',
176
  'delete_selected' => 'Delete selected ' . $contact_type . ' from Leadin'
177
  );
178
 
admin/leadin-admin.php CHANGED
@@ -602,7 +602,7 @@ class WPLeadInAdmin {
602
  <div class="leadin-contacts">
603
 
604
  <?php
605
- $this->leadin_header('Manage Leadin Tags <a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=leadin_contacts&action=add_tag" class="add-new-h2">Add New</a>', 'leadin-contacts__header');
606
  ?>
607
 
608
  <div class="">
@@ -963,7 +963,7 @@ class WPLeadInAdmin {
963
  if ( isset( $_POST['li_updates_subscription'] ) && $_POST['li_updates_subscription'] )
964
  leadin_subscribe_user_updates();
965
 
966
- leadin_register_user();
967
  }
968
 
969
  /**
602
  <div class="leadin-contacts">
603
 
604
  <?php
605
+ $this->leadin_header('Manage Leadin Tags <a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=leadin_tags&action=add_tag" class="add-new-h2">Add New</a>', 'leadin-contacts__header');
606
  ?>
607
 
608
  <div class="">
963
  if ( isset( $_POST['li_updates_subscription'] ) && $_POST['li_updates_subscription'] )
964
  leadin_subscribe_user_updates();
965
 
966
+ //leadin_register_user();
967
  }
968
 
969
  /**
inc/leadin-functions.php CHANGED
@@ -114,6 +114,9 @@ function leadin_get_current_user ()
114
  */
115
  function leadin_register_user ()
116
  {
 
 
 
117
  if ( ! function_exists('curl_init') )
118
  return false;
119
 
@@ -147,6 +150,9 @@ function leadin_register_user ()
147
  */
148
  function leadin_update_user ()
149
  {
 
 
 
150
  if ( ! function_exists('curl_init') )
151
  return false;
152
 
@@ -172,6 +178,9 @@ function leadin_update_user ()
172
  */
173
  function leadin_subscribe_user_updates ()
174
  {
 
 
 
175
  $leadin_user = leadin_get_current_user();
176
 
177
  // Sync to email to MailChimp
@@ -200,6 +209,9 @@ function leadin_subscribe_user_updates ()
200
  */
201
  function leadin_set_beta_tester_property ( $beta_tester )
202
  {
 
 
 
203
  if ( ! function_exists('curl_init') )
204
  return false;
205
 
@@ -218,6 +230,9 @@ function leadin_set_beta_tester_property ( $beta_tester )
218
  */
219
  function leadin_set_install_status ( $li_status )
220
  {
 
 
 
221
  if ( ! function_exists('curl_init') )
222
  return false;
223
 
@@ -246,6 +261,9 @@ function leadin_set_install_status ( $li_status )
246
  */
247
  function leadin_track_plugin_registration_hook ( $activated )
248
  {
 
 
 
249
  if ( $activated )
250
  {
251
  leadin_register_user();
@@ -270,9 +288,11 @@ function leadin_track_plugin_registration_hook ( $activated )
270
  */
271
  function leadin_track_plugin_activity ( $activity_desc, $custom_properties = array() )
272
  {
 
 
 
273
  if ( ! function_exists('curl_init') )
274
  return false;
275
-
276
 
277
  $leadin_user = leadin_get_current_user();
278
 
114
  */
115
  function leadin_register_user ()
116
  {
117
+ //@MP hack
118
+ return FALSE;
119
+
120
  if ( ! function_exists('curl_init') )
121
  return false;
122
 
150
  */
151
  function leadin_update_user ()
152
  {
153
+ //@MP hack
154
+ return FALSE;
155
+
156
  if ( ! function_exists('curl_init') )
157
  return false;
158
 
178
  */
179
  function leadin_subscribe_user_updates ()
180
  {
181
+ //@MP hack
182
+ return FALSE;
183
+
184
  $leadin_user = leadin_get_current_user();
185
 
186
  // Sync to email to MailChimp
209
  */
210
  function leadin_set_beta_tester_property ( $beta_tester )
211
  {
212
+ //@MP hack
213
+ return FALSE;
214
+
215
  if ( ! function_exists('curl_init') )
216
  return false;
217
 
230
  */
231
  function leadin_set_install_status ( $li_status )
232
  {
233
+ //@MP hack
234
+ return FALSE;
235
+
236
  if ( ! function_exists('curl_init') )
237
  return false;
238
 
261
  */
262
  function leadin_track_plugin_registration_hook ( $activated )
263
  {
264
+ //@MP hack
265
+ return FALSE;
266
+
267
  if ( $activated )
268
  {
269
  leadin_register_user();
288
  */
289
  function leadin_track_plugin_activity ( $activity_desc, $custom_properties = array() )
290
  {
291
+ //@MP hack
292
+ return FALSE;
293
+
294
  if ( ! function_exists('curl_init') )
295
  return false;
 
296
 
297
  $leadin_user = leadin_get_current_user();
298
 
leadin.php CHANGED
@@ -3,7 +3,7 @@
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: 2.2.3
7
  Author: Andy Cook, Nelson Joyce
8
  Author URI: http://leadin.com
9
  License: GPL2
@@ -23,10 +23,10 @@ if ( !defined('LEADIN_PLUGIN_SLUG') )
23
  define('LEADIN_PLUGIN_SLUG', basename(dirname(__FILE__)));
24
 
25
  if ( !defined('LEADIN_DB_VERSION') )
26
- define('LEADIN_DB_VERSION', '2.2.3');
27
 
28
  if ( !defined('LEADIN_PLUGIN_VERSION') )
29
- define('LEADIN_PLUGIN_VERSION', '2.2.3');
30
 
31
  if ( !defined('MIXPANEL_PROJECT_TOKEN') )
32
  define('MIXPANEL_PROJECT_TOKEN', 'a9615503ec58a6bce2c646a58390eac1');
@@ -131,7 +131,7 @@ function activate_leadin ( $network_wide )
131
  switch_to_blog($blog_id);
132
  add_leadin_defaults();
133
  $activated[] = $blog_id;
134
- leadin_track_plugin_registration_hook(TRUE);
135
  }
136
 
137
  // Switch back to the current blog
@@ -142,7 +142,7 @@ function activate_leadin ( $network_wide )
142
  }
143
  else
144
  {
145
- leadin_track_plugin_registration_hook(TRUE);
146
 
147
  add_leadin_defaults();
148
  }
@@ -219,14 +219,14 @@ function deactivate_leadin ( $network_wide )
219
  foreach ( $blog_ids as $blog_id )
220
  {
221
  switch_to_blog($blog_id);
222
- leadin_track_plugin_registration_hook(FALSE);
223
  }
224
 
225
  // Switch back to the current blog
226
  switch_to_blog($current_blog);
227
  }
228
- else
229
- leadin_track_plugin_registration_hook(FALSE);
230
  }
231
 
232
  function activate_leadin_on_new_blog ( $blog_id, $user_id, $domain, $path, $site_id, $meta )
@@ -331,6 +331,7 @@ function leadin_db_install ()
331
  `tag_relationship_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
332
  `tag_id` int(11) unsigned NOT NULL,
333
  `contact_hashkey` varchar(16) NOT NULL,
 
334
  `tag_relationship_deleted` int(1) unsigned NOT NULL,
335
  `blog_id` int(11) unsigned NOT NULL,
336
  PRIMARY KEY (`tag_relationship_id`)
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: 2.2.5
7
  Author: Andy Cook, Nelson Joyce
8
  Author URI: http://leadin.com
9
  License: GPL2
23
  define('LEADIN_PLUGIN_SLUG', basename(dirname(__FILE__)));
24
 
25
  if ( !defined('LEADIN_DB_VERSION') )
26
+ define('LEADIN_DB_VERSION', '2.2.4');
27
 
28
  if ( !defined('LEADIN_PLUGIN_VERSION') )
29
+ define('LEADIN_PLUGIN_VERSION', '2.2.5');
30
 
31
  if ( !defined('MIXPANEL_PROJECT_TOKEN') )
32
  define('MIXPANEL_PROJECT_TOKEN', 'a9615503ec58a6bce2c646a58390eac1');
131
  switch_to_blog($blog_id);
132
  add_leadin_defaults();
133
  $activated[] = $blog_id;
134
+ //leadin_track_plugin_registration_hook(TRUE);
135
  }
136
 
137
  // Switch back to the current blog
142
  }
143
  else
144
  {
145
+ //leadin_track_plugin_registration_hook(TRUE);
146
 
147
  add_leadin_defaults();
148
  }
219
  foreach ( $blog_ids as $blog_id )
220
  {
221
  switch_to_blog($blog_id);
222
+ //leadin_track_plugin_registration_hook(FALSE);
223
  }
224
 
225
  // Switch back to the current blog
226
  switch_to_blog($current_blog);
227
  }
228
+ //else
229
+ //leadin_track_plugin_registration_hook(FALSE);
230
  }
231
 
232
  function activate_leadin_on_new_blog ( $blog_id, $user_id, $domain, $path, $site_id, $meta )
331
  `tag_relationship_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
332
  `tag_id` int(11) unsigned NOT NULL,
333
  `contact_hashkey` varchar(16) NOT NULL,
334
+ `form_hashkey` varchar(16) NOT NULL,
335
  `tag_relationship_deleted` int(1) unsigned NOT NULL,
336
  `blog_id` int(11) unsigned NOT NULL,
337
  PRIMARY KEY (`tag_relationship_id`)
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: andygcook, nelsonjoyce
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.0
6
- Stable tag: 2.2.3
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
 
@@ -107,8 +107,17 @@ You betcha! Leadin should work just fine on Multisite right out-of-the-box witho
107
 
108
  == Changelog ==
109
 
110
- - Current version: 2.2.3
111
- - Current version release: 2014-10-31
 
 
 
 
 
 
 
 
 
112
 
113
  = 2.2.3 (2014.10.31) =
114
  = Enhancements =
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.0
6
+ Stable tag: 2.2.5
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
 
107
 
108
  == Changelog ==
109
 
110
+ - Current version: 2.2.5
111
+ - Current version release: 2014-11-20
112
+
113
+ = 2.2.5 (2014.11.20) =
114
+ - Bug fixes
115
+ - Fixes to bulk action labels
116
+ - Fixed Add Tag button
117
+
118
+ = 2.2.4 (2014.10.31) =
119
+ - Bug fixes
120
+ - Patch for 2.2.3 database structure. We forgot to include the new form_hashkey field in the database upgrade
121
 
122
  = 2.2.3 (2014.10.31) =
123
  = Enhancements =