Version Description
(2015.08.13) = - Migration improvements - Bug fix to stop showing the setup dialog when setup is in progress - Preparatory work to send notification emails in the timezone WordPress is configured in
Download this release
Release Info
Developer | leadin |
Plugin | HubSpot – Free Marketing Plugin for WordPress |
Version | 4.2.0 |
Comparing to | |
See all releases |
Code changes from version 4.1.1 to 4.2.0
- admin/leadin-admin.php +0 -1
- inc/leadin-constants.php +0 -15
- inc/leadin-functions.php +9 -0
- migration/js/main.js +18 -1
- readme.txt +8 -3
admin/leadin-admin.php
CHANGED
@@ -228,7 +228,6 @@ class WPLeadInAdmin {
|
|
228 |
'wp-url' => $leadin_user['wp_url'],
|
229 |
'wp-version' => $leadin_user['wp_version'],
|
230 |
'li-source' => LEADIN_SOURCE,
|
231 |
-
'createdAt' => date('Y-m-d H:i:s'),
|
232 |
'website' => $leadin_user['wp_url'],
|
233 |
'company' => $leadin_user['wp_url'],
|
234 |
'utm_source' => $leadin_user['utm_source'],
|
228 |
'wp-url' => $leadin_user['wp_url'],
|
229 |
'wp-version' => $leadin_user['wp_version'],
|
230 |
'li-source' => LEADIN_SOURCE,
|
|
|
231 |
'website' => $leadin_user['wp_url'],
|
232 |
'company' => $leadin_user['wp_url'],
|
233 |
'utm_source' => $leadin_user['utm_source'],
|
inc/leadin-constants.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined('LEADIN_UTM_SOURCE') )
|
4 |
-
define('LEADIN_UTM_SOURCE', 'leadin%20repo%20plugin');
|
5 |
-
|
6 |
-
if ( ! defined('LEADIN_UTM_MEDIUM') )
|
7 |
-
define('LEADIN_UTM_MEDIUM', 'referral');
|
8 |
-
|
9 |
-
if ( ! defined('LEADIN_UTM_CONTENT') )
|
10 |
-
define('LEADIN_UTM_CONTENT', 'e10');
|
11 |
-
|
12 |
-
if ( ! defined('LEADIN_UTM_CAMPAIGN') )
|
13 |
-
define('LEADIN_UTM_CAMPAIGN', 'one%20click%20updater');
|
14 |
-
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/leadin-functions.php
CHANGED
@@ -926,6 +926,15 @@ function leadin_set_migration_complete_flag ( )
|
|
926 |
add_action('wp_ajax_leadin_set_migration_complete_flag', 'leadin_set_migration_complete_flag'); // Call when user logged in
|
927 |
add_action('wp_ajax_nopriv_leadin_set_migration_complete_flag', 'leadin_set_migration_complete_flag'); // Call when user is not logged in
|
928 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
929 |
function leadin_make_curl_request ( $request, $params = array(), $request_type = 'POST' )
|
930 |
{
|
931 |
// remove NULL values from params
|
926 |
add_action('wp_ajax_leadin_set_migration_complete_flag', 'leadin_set_migration_complete_flag'); // Call when user logged in
|
927 |
add_action('wp_ajax_nopriv_leadin_set_migration_complete_flag', 'leadin_set_migration_complete_flag'); // Call when user is not logged in
|
928 |
|
929 |
+
function leadin_set_migration_complete_option ()
|
930 |
+
{
|
931 |
+
update_option(LEADIN_MIGRATION_OPTION_NAME, 'completed');
|
932 |
+
}
|
933 |
+
|
934 |
+
add_action('wp_ajax_leadin_set_migration_complete_option', 'leadin_set_migration_complete_option'); // Call when user logged in
|
935 |
+
add_action('wp_ajax_nopriv_leadin_set_migration_complete_option', 'leadin_set_migration_complete_option'); // Call when user is not logged in
|
936 |
+
|
937 |
+
|
938 |
function leadin_make_curl_request ( $request, $params = array(), $request_type = 'POST' )
|
939 |
{
|
940 |
// remove NULL values from params
|
migration/js/main.js
CHANGED
@@ -69,7 +69,7 @@ function leadinStartContactsMigration() {
|
|
69 |
|
70 |
$('#leadin-migration-progress-bar').css('width', '100%');
|
71 |
$('#progress-text').text("All your contacts have been uploaded to our servers.");
|
72 |
-
|
73 |
window.removeEventListener("beforeunload", closePageDialogue);
|
74 |
|
75 |
} else {
|
@@ -160,6 +160,23 @@ function leadinFireCompleteMigrationEvent() {
|
|
160 |
})
|
161 |
}
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
var closePageDialogue = function (e) {
|
164 |
var confirmationMessage = 'Leadin is currently migrating your contacts to our cloud servers. ';
|
165 |
confirmationMessage += 'If you close this page, the migration will pause and not finish uploading your contacts.';
|
69 |
|
70 |
$('#leadin-migration-progress-bar').css('width', '100%');
|
71 |
$('#progress-text').text("All your contacts have been uploaded to our servers.");
|
72 |
+
leadinSetMigrationCompleteOption();
|
73 |
window.removeEventListener("beforeunload", closePageDialogue);
|
74 |
|
75 |
} else {
|
160 |
})
|
161 |
}
|
162 |
|
163 |
+
function leadinSetMigrationCompleteOption() {
|
164 |
+
jQuery.ajax({
|
165 |
+
type: 'POST',
|
166 |
+
url: li_ajax.ajax_url,
|
167 |
+
data: {
|
168 |
+
"action": "leadin_set_migration_complete_option"
|
169 |
+
},
|
170 |
+
success: function (data) {
|
171 |
+
// Hurray!
|
172 |
+
},
|
173 |
+
error: function (data) {
|
174 |
+
console.error("Unable to set migration complete option: " + data);
|
175 |
+
}
|
176 |
+
})
|
177 |
+
|
178 |
+
}
|
179 |
+
|
180 |
var closePageDialogue = function (e) {
|
181 |
var confirmationMessage = 'Leadin is currently migrating your contacts to our cloud servers. ';
|
182 |
confirmationMessage += 'If you close this page, the migration will pause and not finish uploading your contacts.';
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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.
|
6 |
-
Stable tag: 4.
|
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,9 +68,14 @@ Having trouble? Check out our <a href="http://support.leadin.com/" target="_blan
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
-
- Current version: 4.
|
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 |
|
2 |
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.4
|
6 |
+
Stable tag: 4.2.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 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
- Current version: 4.2.0
|
72 |
- Current version release: 2015-07-14
|
73 |
|
74 |
+
= 4.2.0 (2015.08.13) =
|
75 |
+
- Migration improvements
|
76 |
+
- Bug fix to stop showing the setup dialog when setup is in progress
|
77 |
+
- Preparatory work to send notification emails in the timezone WordPress is configured in
|
78 |
+
|
79 |
= 4.1.1 (2015.07.14) =
|
80 |
- Bug fix for upgraded installs from the plugin directory running through the migration process
|
81 |
|