WhatsApp me - Version 1.4.2

Version Description

  • FIX JavaScript error introduced on v1.4.1.
Download this release

Release Info

Developer creapuntome
Plugin Icon 128x128 WhatsApp me
Version 1.4.2
Comparing to
See all releases

Code changes from version 1.4.1 to 1.4.2

Files changed (3) hide show
  1. README.txt +4 -1
  2. public/js/whatsappme.js +2 -2
  3. whatsappme.php +2 -2
README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: whatsapp, button, chat, support, contact
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
  Requires PHP: 5.3
8
- Stable tag: 1.4.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -54,6 +54,9 @@ Greater values of z-index are left over, the default value is 400.
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.4.1 =
58
  * Fix JS frontend sometimes can't load WhatsApp me settings.
59
  * Fix better Google Analitycs event tracking when leave page.
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
  Requires PHP: 5.3
8
+ Stable tag: 1.4.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.4.2 =
58
+ * FIX JavaScript error introduced on v1.4.1.
59
+
60
  = 1.4.1 =
61
  * Fix JS frontend sometimes can't load WhatsApp me settings.
62
  * Fix better Google Analitycs event tracking when leave page.
public/js/whatsappme.js CHANGED
@@ -7,7 +7,7 @@
7
  var wame_settings = $whatsappme.data('settings');
8
 
9
  // In some strange cases data settings are empty
10
- if (typeof($whatsappme.data('settings')) == 'undefined') {
11
  try {
12
  wame_settings = JSON.parse($whatsappme.attr('data-settings'));
13
  } catch (error) {
@@ -26,7 +26,7 @@
26
 
27
  // stored values
28
  var is_clicked = localStorage.whatsappme_click == 'yes';
29
- var views = settings.message_text === '' ? 0 : parseInt(localStorage.whatsappme_views || 0) + 1;
30
  localStorage.whatsappme_views = views;
31
 
32
  // show button / dialog
7
  var wame_settings = $whatsappme.data('settings');
8
 
9
  // In some strange cases data settings are empty
10
+ if (typeof(wame_settings) == 'undefined') {
11
  try {
12
  wame_settings = JSON.parse($whatsappme.attr('data-settings'));
13
  } catch (error) {
26
 
27
  // stored values
28
  var is_clicked = localStorage.whatsappme_click == 'yes';
29
+ var views = wame_settings.message_text === '' ? 0 : parseInt(localStorage.whatsappme_views || 0) + 1;
30
  localStorage.whatsappme_views = views;
31
 
32
  // show button / dialog
whatsappme.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: WhatsApp me
10
  * Plugin URI: https://crea.me/productos/whatsapp-me/
11
  * Description: Add support to your clients directly with WhatsApp.
12
- * Version: 1.4.1
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
- define( 'WHATSAPPME_VERSION', '1.4.1' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,
9
  * Plugin Name: WhatsApp me
10
  * Plugin URI: https://crea.me/productos/whatsapp-me/
11
  * Description: Add support to your clients directly with WhatsApp.
12
+ * Version: 1.4.2
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
+ define( 'WHATSAPPME_VERSION', '1.4.2' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,