Click to Chat for WhatsApp Chat - Version 3.17.1

Version Description

  • Fix: TypeError
Download this release

Release Info

Developer bhvreddy
Plugin Icon 128x128 Click to Chat for WhatsApp Chat
Version 3.17.1
Comparing to
See all releases

Code changes from version 3.17 to 3.17.1

click-to-chat.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
- Version: 3.17
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
@@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
- define( 'HT_CTC_VERSION', '3.17' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
+ Version: 3.17.1
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
+ define( 'HT_CTC_VERSION', '3.17.1' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
new/admin/db/class-ht-ctc-db2.php CHANGED
@@ -224,6 +224,8 @@ class HT_CTC_DB2 {
224
  );
225
 
226
  $db_values = get_option( 'ht_ctc_s1', array() );
 
 
227
  $update_values = array_merge($style_1, $db_values);
228
  update_option('ht_ctc_s1', $update_values);
229
 
@@ -308,6 +310,8 @@ class HT_CTC_DB2 {
308
  }
309
 
310
  $db_values = get_option( 'ht_ctc_s3', array() );
 
 
311
  $update_values = array_merge($style_3, $db_values);
312
  update_option('ht_ctc_s3', $update_values);
313
 
@@ -346,6 +350,8 @@ class HT_CTC_DB2 {
346
  }
347
 
348
  $db_values = get_option( 'ht_ctc_s3_1', array() );
 
 
349
  $update_values = array_merge($style_3_1, $db_values);
350
  update_option('ht_ctc_s3_1', $update_values);
351
 
@@ -371,6 +377,8 @@ class HT_CTC_DB2 {
371
  );
372
 
373
  $db_values = get_option( 'ht_ctc_s4', array() );
 
 
374
  $update_values = array_merge($style_4, $db_values);
375
  update_option('ht_ctc_s4', $update_values);
376
 
@@ -404,6 +412,8 @@ class HT_CTC_DB2 {
404
  );
405
 
406
  $db_values = get_option( 'ht_ctc_s5', array() );
 
 
407
  $update_values = array_merge($style_5, $db_values);
408
  update_option('ht_ctc_s5', $update_values);
409
 
@@ -431,6 +441,8 @@ class HT_CTC_DB2 {
431
  );
432
 
433
  $db_values = get_option( 'ht_ctc_s6', array() );
 
 
434
  $update_values = array_merge($style_6, $db_values);
435
  update_option('ht_ctc_s6', $update_values);
436
 
@@ -468,6 +480,8 @@ class HT_CTC_DB2 {
468
  }
469
 
470
  $db_values = get_option( 'ht_ctc_s7', array() );
 
 
471
  $update_values = array_merge($style_7, $db_values);
472
  update_option('ht_ctc_s7', $update_values);
473
 
@@ -499,6 +513,8 @@ class HT_CTC_DB2 {
499
  );
500
 
501
  $db_values = get_option( 'ht_ctc_s7_1', array() );
 
 
502
  $update_values = array_merge($style_7_1, $db_values);
503
  update_option('ht_ctc_s7_1', $update_values);
504
 
@@ -540,6 +556,8 @@ class HT_CTC_DB2 {
540
  }
541
 
542
  $db_values = get_option( 'ht_ctc_s8', array() );
 
 
543
  $update_values = array_merge($style_8, $db_values);
544
  update_option('ht_ctc_s8', $update_values);
545
 
@@ -565,6 +583,8 @@ class HT_CTC_DB2 {
565
  );
566
 
567
  $db_values = get_option( 'ht_ctc_s99', array() );
 
 
568
  $update_values = array_merge($style_99, $db_values);
569
  update_option('ht_ctc_s99', $update_values);
570
 
224
  );
225
 
226
  $db_values = get_option( 'ht_ctc_s1', array() );
227
+ $db_values = (is_array( $db_values)) ? $db_values : [];
228
+
229
  $update_values = array_merge($style_1, $db_values);
230
  update_option('ht_ctc_s1', $update_values);
231
 
310
  }
311
 
312
  $db_values = get_option( 'ht_ctc_s3', array() );
313
+ $db_values = (is_array( $db_values)) ? $db_values : [];
314
+
315
  $update_values = array_merge($style_3, $db_values);
316
  update_option('ht_ctc_s3', $update_values);
317
 
350
  }
351
 
352
  $db_values = get_option( 'ht_ctc_s3_1', array() );
353
+ $db_values = (is_array( $db_values)) ? $db_values : [];
354
+
355
  $update_values = array_merge($style_3_1, $db_values);
356
  update_option('ht_ctc_s3_1', $update_values);
357
 
377
  );
378
 
379
  $db_values = get_option( 'ht_ctc_s4', array() );
380
+ $db_values = (is_array( $db_values)) ? $db_values : [];
381
+
382
  $update_values = array_merge($style_4, $db_values);
383
  update_option('ht_ctc_s4', $update_values);
384
 
412
  );
413
 
414
  $db_values = get_option( 'ht_ctc_s5', array() );
415
+ $db_values = (is_array( $db_values)) ? $db_values : [];
416
+
417
  $update_values = array_merge($style_5, $db_values);
418
  update_option('ht_ctc_s5', $update_values);
419
 
441
  );
442
 
443
  $db_values = get_option( 'ht_ctc_s6', array() );
444
+ $db_values = (is_array( $db_values)) ? $db_values : [];
445
+
446
  $update_values = array_merge($style_6, $db_values);
447
  update_option('ht_ctc_s6', $update_values);
448
 
480
  }
481
 
482
  $db_values = get_option( 'ht_ctc_s7', array() );
483
+ $db_values = (is_array( $db_values)) ? $db_values : [];
484
+
485
  $update_values = array_merge($style_7, $db_values);
486
  update_option('ht_ctc_s7', $update_values);
487
 
513
  );
514
 
515
  $db_values = get_option( 'ht_ctc_s7_1', array() );
516
+ $db_values = (is_array( $db_values)) ? $db_values : [];
517
+
518
  $update_values = array_merge($style_7_1, $db_values);
519
  update_option('ht_ctc_s7_1', $update_values);
520
 
556
  }
557
 
558
  $db_values = get_option( 'ht_ctc_s8', array() );
559
+ $db_values = (is_array( $db_values)) ? $db_values : [];
560
+
561
  $update_values = array_merge($style_8, $db_values);
562
  update_option('ht_ctc_s8', $update_values);
563
 
583
  );
584
 
585
  $db_values = get_option( 'ht_ctc_s99', array() );
586
+ $db_values = (is_array( $db_values)) ? $db_values : [];
587
+
588
  $update_values = array_merge($style_99, $db_values);
589
  update_option('ht_ctc_s99', $update_values);
590
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Requires at least: 4.6
3
  Tested up to: 6.1.1
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
- Stable tag: 3.17
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp share, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, chat, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -524,8 +524,11 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
524
 
525
  == Changelog ==
526
 
 
 
 
527
  = 3.17 =
528
- * Fix: Uncaught TypeError
529
 
530
  = 3.16 =
531
  * Enchantment: Shortcodes
3
  Tested up to: 6.1.1
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.17.1
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp share, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, chat, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
524
 
525
  == Changelog ==
526
 
527
+ = 3.17.1 =
528
+ * Fix: TypeError
529
+
530
  = 3.17 =
531
+ * Fix: TypeError
532
 
533
  = 3.16 =
534
  * Enchantment: Shortcodes