Version Description
- Fix. WhatsApp premium compatibility
Download this release
Release Info
Developer | quadlayers |
Plugin | WhatsApp Chat WP |
Version | 6.1.6 |
Comparing to | |
See all releases |
Code changes from version 6.1.5 to 6.1.6
- includes/helpers.php +8 -3
- includes/qlwapp.php +1 -0
- readme.txt +4 -1
- wp-whatsapp-chat.php +2 -2
includes/helpers.php
CHANGED
@@ -45,12 +45,17 @@ function qlwapp_replacements_vars( $text ) {
|
|
45 |
}
|
46 |
|
47 |
function qlwapp_get_timezone_offset( $timezone ) {
|
|
|
|
|
|
|
|
|
|
|
48 |
if ( strpos( $timezone, 'UTC' ) !== false ) {
|
49 |
$offset = preg_replace( '/UTC\+?/', '', $timezone ) * 60;
|
50 |
-
} else {
|
51 |
$current = timezone_open( $timezone );
|
52 |
-
$utc
|
53 |
-
$offset
|
54 |
}
|
55 |
return $offset;
|
56 |
}
|
45 |
}
|
46 |
|
47 |
function qlwapp_get_timezone_offset( $timezone ) {
|
48 |
+
|
49 |
+
if ( ! $timezone ) {
|
50 |
+
return;
|
51 |
+
}
|
52 |
+
|
53 |
if ( strpos( $timezone, 'UTC' ) !== false ) {
|
54 |
$offset = preg_replace( '/UTC\+?/', '', $timezone ) * 60;
|
55 |
+
} else {;
|
56 |
$current = timezone_open( $timezone );
|
57 |
+
$utc = new \DateTime( 'now', new \DateTimeZone( 'UTC' ) );
|
58 |
+
$offset = $current->getOffset( $utc ) / 3600 * 60;
|
59 |
}
|
60 |
return $offset;
|
61 |
}
|
includes/qlwapp.php
CHANGED
@@ -5,6 +5,7 @@ class QLWAPP {
|
|
5 |
protected static $instance;
|
6 |
|
7 |
function includes() {
|
|
|
8 |
include_once QLWAPP_PLUGIN_DIR . 'includes/settings.php';
|
9 |
include_once QLWAPP_PLUGIN_DIR . 'includes/frontend.php';
|
10 |
include_once QLWAPP_PLUGIN_DIR . 'includes/backend.php';
|
5 |
protected static $instance;
|
6 |
|
7 |
function includes() {
|
8 |
+
include_once QLWAPP_PLUGIN_DIR . 'includes/helpers.php';
|
9 |
include_once QLWAPP_PLUGIN_DIR . 'includes/settings.php';
|
10 |
include_once QLWAPP_PLUGIN_DIR . 'includes/frontend.php';
|
11 |
include_once QLWAPP_PLUGIN_DIR . 'includes/backend.php';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, woocommerce wha
|
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 6.0
|
8 |
-
Stable tag: 6.1.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -132,6 +132,9 @@ Don't use: +001-(555)1234567
|
|
132 |
|
133 |
== Changelog ==
|
134 |
|
|
|
|
|
|
|
135 |
= 6.1.5 =
|
136 |
* Fix. WooCommerce WhatsApp
|
137 |
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 6.0
|
8 |
+
Stable tag: 6.1.6
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
132 |
|
133 |
== Changelog ==
|
134 |
|
135 |
+
= 6.1.6 =
|
136 |
+
* Fix. WhatsApp premium compatibility
|
137 |
+
|
138 |
= 6.1.5 =
|
139 |
* Fix. WooCommerce WhatsApp
|
140 |
|
wp-whatsapp-chat.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Chat
|
5 |
* Description: Social Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
|
6 |
* Plugin URI: https://quadlayers.com/portfolio/whatsapp-chat/
|
7 |
-
* Version: 6.1.
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
18 |
}
|
19 |
|
20 |
define( 'QLWAPP_PLUGIN_NAME', 'Social Chat' );
|
21 |
-
define( 'QLWAPP_PLUGIN_VERSION', '6.1.
|
22 |
define( 'QLWAPP_PLUGIN_FILE', __FILE__ );
|
23 |
define( 'QLWAPP_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
|
24 |
define( 'QLWAPP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
4 |
* Plugin Name: Social Chat
|
5 |
* Description: Social Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
|
6 |
* Plugin URI: https://quadlayers.com/portfolio/whatsapp-chat/
|
7 |
+
* Version: 6.1.6
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
18 |
}
|
19 |
|
20 |
define( 'QLWAPP_PLUGIN_NAME', 'Social Chat' );
|
21 |
+
define( 'QLWAPP_PLUGIN_VERSION', '6.1.6' );
|
22 |
define( 'QLWAPP_PLUGIN_FILE', __FILE__ );
|
23 |
define( 'QLWAPP_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
|
24 |
define( 'QLWAPP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|