HubSpot – Free Marketing Plugin for WordPress - Version 7.0.4

Version Description

(2019.02.19) = - Show welcome dialog after connection - Remove extra navigation in connection flow - Add pre-fill to signup form - Add plugin version to HTML comment - Fix enqueue style error

Download this release

Release Info

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

Code changes from version 7.0.3 to 7.0.4

Files changed (4) hide show
  1. admin/leadin-admin.php +5 -1
  2. inc/class-leadin.php +1 -1
  3. leadin.php +2 -2
  4. readme.txt +10 -3
admin/leadin-admin.php CHANGED
@@ -50,13 +50,13 @@ class WPLeadInAdmin {
50
 
51
  add_action( 'admin_menu', array( &$this, 'leadin_add_menu_items' ) );
52
  add_action( 'admin_print_scripts', array( &$this, 'add_leadin_admin_scripts' ) );
 
53
  add_filter( 'plugin_action_links_' . 'leadin/leadin.php', array( $this, 'leadin_plugin_settings_link' ) );
54
 
55
  if ($affiliate = $this->get_affiliate_code()) {
56
  add_option( 'hubspot_affiliate_code', $affiliate );
57
  }
58
  $this->hydrate_acquisition_attribution();
59
- $this->add_leadin_global_admin_style();
60
  }
61
 
62
  function get_affiliate_code() {
@@ -188,6 +188,7 @@ class WPLeadInAdmin {
188
  global $wp_version;
189
 
190
  $ajaxUrl = get_admin_url( get_current_blog_id(), 'admin-ajax.php' );
 
191
 
192
  $leadin_config = array(
193
  'portalId' => get_option( 'leadin_portalId' ),
@@ -213,6 +214,9 @@ class WPLeadInAdmin {
213
  'refreshToken' => get_option( 'leadin_refreshToken' ),
214
  'userId' => get_option( 'leadin_userId' ),
215
  'connectionTimeInMs' => get_option( 'leadin_connectionTimeInMs' ),
 
 
 
216
  );
217
 
218
  if ( ( $pagenow == 'admin.php' && isset( $_GET['page'] ) && strstr( $_GET['page'], 'leadin' ) ) ) { // WPCS: CSRF ok.
50
 
51
  add_action( 'admin_menu', array( &$this, 'leadin_add_menu_items' ) );
52
  add_action( 'admin_print_scripts', array( &$this, 'add_leadin_admin_scripts' ) );
53
+ add_action( 'admin_enqueue_scripts', array( &$this, 'add_leadin_global_admin_style' ) );
54
  add_filter( 'plugin_action_links_' . 'leadin/leadin.php', array( $this, 'leadin_plugin_settings_link' ) );
55
 
56
  if ($affiliate = $this->get_affiliate_code()) {
57
  add_option( 'hubspot_affiliate_code', $affiliate );
58
  }
59
  $this->hydrate_acquisition_attribution();
 
60
  }
61
 
62
  function get_affiliate_code() {
188
  global $wp_version;
189
 
190
  $ajaxUrl = get_admin_url( get_current_blog_id(), 'admin-ajax.php' );
191
+ $wpUser = wp_get_current_user();
192
 
193
  $leadin_config = array(
194
  'portalId' => get_option( 'leadin_portalId' ),
214
  'refreshToken' => get_option( 'leadin_refreshToken' ),
215
  'userId' => get_option( 'leadin_userId' ),
216
  'connectionTimeInMs' => get_option( 'leadin_connectionTimeInMs' ),
217
+ 'wpUserFirstName' => $wpUser->user_firstname,
218
+ 'wpUserLastName' => $wpUser->user_lastname,
219
+ 'wpUserEmail' => $wpUser->user_email,
220
  );
221
 
222
  if ( ( $pagenow == 'admin.php' && isset( $_GET['page'] ) && strstr( $_GET['page'], 'leadin' ) ) ) { // WPCS: CSRF ok.
inc/class-leadin.php CHANGED
@@ -80,7 +80,7 @@ class WPLeadIn {
80
 
81
  /* HubSpot page analytics */
82
  function add_page_analytics() {
83
- echo "\n".'<!-- DO NOT COPY THIS SNIPPET! Start of Page Analytics Tracking for HubSpot WordPress plugin -->'."\n";
84
  echo '<script type="text/javascript">'."\n";
85
 
86
  echo 'var _hsq = _hsq || [];'."\n";
80
 
81
  /* HubSpot page analytics */
82
  function add_page_analytics() {
83
+ echo "\n".'<!-- DO NOT COPY THIS SNIPPET! Start of Page Analytics Tracking for HubSpot WordPress plugin v'.LEADIN_PLUGIN_VERSION.' -->'."\n";
84
  echo '<script type="text/javascript">'."\n";
85
 
86
  echo 'var _hsq = _hsq || [];'."\n";
leadin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Builder for WordPress – Conversion Tools by HubSpot
4
  Plugin URI: http://www.hubspot.com/products/wordpress/contact-form
5
  Description: Whether you’re just getting started with HubSpot or already a HubSpot power user, Contact Form Builder for WordPress and Conversion Tools by HubSpot will let you use HubSpot tools on your WordPress website and connect the two platforms without dealing with code.
6
- Version: 7.0.3
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
@@ -33,7 +33,7 @@ if ( ! defined( 'LEADIN_DB_VERSION' ) ) {
33
  }
34
 
35
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
36
- define( 'LEADIN_PLUGIN_VERSION', '7.0.3' );
37
  }
38
 
39
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
3
  Plugin Name: Contact Form Builder for WordPress – Conversion Tools by HubSpot
4
  Plugin URI: http://www.hubspot.com/products/wordpress/contact-form
5
  Description: Whether you’re just getting started with HubSpot or already a HubSpot power user, Contact Form Builder for WordPress and Conversion Tools by HubSpot will let you use HubSpot tools on your WordPress website and connect the two platforms without dealing with code.
6
+ Version: 7.0.4
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
33
  }
34
 
35
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
36
+ define( 'LEADIN_PLUGIN_VERSION', '7.0.4' );
37
  }
38
 
39
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: HubSpotDev, leadin
3
  Tags: form, forms, form builder, contact form, email
4
  Requires at least: 3.7
5
  Tested up to: 5.0
6
- Stable tag: 7.0.3
7
 
8
  The Contact Form Builder plugin, a part of HubSpot's Conversion Tools, allows you to create WordPress forms using <a href="https://hubspot.com/products/marketing/forms?utm_source=wordpress-plugin-listing&utm_campaign=wordpress&utm_medium=marketplaces" target="_blank">HubSpot's drag & drop Form Builder</a> in a few clicks to start capturing leads on your website.
9
 
@@ -201,8 +201,15 @@ Please <a href="https://community.hubspot.com?utm_source=wordpress-plugin-listin
201
 
202
  == Changelog ==
203
 
204
- - Current version: 7.0.3
205
- - Current version release: 2019-02-12
 
 
 
 
 
 
 
206
 
207
  = 7.0.3 (2019.02.12) =
208
  - Update HubSpot logos
3
  Tags: form, forms, form builder, contact form, email
4
  Requires at least: 3.7
5
  Tested up to: 5.0
6
+ Stable tag: 7.0.4
7
 
8
  The Contact Form Builder plugin, a part of HubSpot's Conversion Tools, allows you to create WordPress forms using <a href="https://hubspot.com/products/marketing/forms?utm_source=wordpress-plugin-listing&utm_campaign=wordpress&utm_medium=marketplaces" target="_blank">HubSpot's drag & drop Form Builder</a> in a few clicks to start capturing leads on your website.
9
 
201
 
202
  == Changelog ==
203
 
204
+ - Current version: 7.0.4
205
+ - Current version release: 2019-02-19
206
+
207
+ = 7.0.4 (2019.02.19) =
208
+ - Show welcome dialog after connection
209
+ - Remove extra navigation in connection flow
210
+ - Add pre-fill to signup form
211
+ - Add plugin version to HTML comment
212
+ - Fix enqueue style error
213
 
214
  = 7.0.3 (2019.02.12) =
215
  - Update HubSpot logos