Version Description
- Romoved language parameter from Tracking Code
Download this release
Release Info
Developer | livechat |
Plugin | LiveChat – WP live chat plugin for WordPress |
Version | 3.2.3 |
Comparing to | |
See all releases |
Code changes from version 3.2.2 to 3.2.3
livechat.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.livechatinc.com/addons/wordpress/
|
|
5 |
Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
|
6 |
Author: LiveChat
|
7 |
Author URI: http://www.livechatinc.com
|
8 |
-
Version: 3.2.
|
9 |
*/
|
10 |
|
11 |
if (is_admin())
|
5 |
Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
|
6 |
Author: LiveChat
|
7 |
Author URI: http://www.livechatinc.com
|
8 |
+
Version: 3.2.3
|
9 |
*/
|
10 |
|
11 |
if (is_admin())
|
plugin_files/LiveChat.class.php
CHANGED
@@ -15,7 +15,6 @@ class LiveChat
|
|
15 |
*/
|
16 |
protected $login = null;
|
17 |
protected $license_number = null;
|
18 |
-
protected $lang = null;
|
19 |
protected $skill = null;
|
20 |
|
21 |
/**
|
@@ -57,14 +56,6 @@ class LiveChat
|
|
57 |
return $this->plugin_url;
|
58 |
}
|
59 |
|
60 |
-
public function livechat_sanitize_lang ($lang)
|
61 |
-
{
|
62 |
-
$lang = trim($lang);
|
63 |
-
if (preg_match('/^[a-z]{2}$/', $lang)) return $lang;
|
64 |
-
|
65 |
-
return 'en';
|
66 |
-
}
|
67 |
-
|
68 |
/**
|
69 |
* Returns true if LiveChat license is set properly,
|
70 |
* false otherwise
|
@@ -108,21 +99,6 @@ class LiveChat
|
|
108 |
return $this->login;
|
109 |
}
|
110 |
|
111 |
-
/**
|
112 |
-
* Returns LiveChat language code
|
113 |
-
*
|
114 |
-
* @return string
|
115 |
-
*/
|
116 |
-
public function get_lang()
|
117 |
-
{
|
118 |
-
if (is_null($this->lang))
|
119 |
-
{
|
120 |
-
$this->lang = get_option('livechat_lang');
|
121 |
-
}
|
122 |
-
|
123 |
-
return $this->lang;
|
124 |
-
}
|
125 |
-
|
126 |
/**
|
127 |
* Returns LiveChat skill number
|
128 |
*
|
15 |
*/
|
16 |
protected $login = null;
|
17 |
protected $license_number = null;
|
|
|
18 |
protected $skill = null;
|
19 |
|
20 |
/**
|
56 |
return $this->plugin_url;
|
57 |
}
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
/**
|
60 |
* Returns true if LiveChat license is set properly,
|
61 |
* false otherwise
|
99 |
return $this->login;
|
100 |
}
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
/**
|
103 |
* Returns LiveChat skill number
|
104 |
*
|
plugin_files/LiveChatAdmin.class.php
CHANGED
@@ -160,7 +160,6 @@ final class LiveChatAdmin extends LiveChat
|
|
160 |
protected function reset_options()
|
161 |
{
|
162 |
delete_option('livechat_license_number');
|
163 |
-
delete_option('livechat_lang');
|
164 |
delete_option('livechat_groups');
|
165 |
}
|
166 |
|
@@ -179,14 +178,7 @@ final class LiveChatAdmin extends LiveChat
|
|
179 |
$skill = max(0, $skill);
|
180 |
|
181 |
|
182 |
-
$lang = 'en';
|
183 |
-
if (isset($data['lang']) && preg_match('/^[a-z]{2}$/', $data['lang']))
|
184 |
-
{
|
185 |
-
$lang = $data['lang'];
|
186 |
-
}
|
187 |
-
|
188 |
update_option('livechat_license_number', $license_number);
|
189 |
-
update_option('livechat_lang', $lang);
|
190 |
update_option('livechat_groups', $skill);
|
191 |
|
192 |
if (isset($data['changes_saved']) && $data['changes_saved'] == '1')
|
160 |
protected function reset_options()
|
161 |
{
|
162 |
delete_option('livechat_license_number');
|
|
|
163 |
delete_option('livechat_groups');
|
164 |
}
|
165 |
|
178 |
$skill = max(0, $skill);
|
179 |
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
update_option('livechat_license_number', $license_number);
|
|
|
182 |
update_option('livechat_groups', $skill);
|
183 |
|
184 |
if (isset($data['changes_saved']) && $data['changes_saved'] == '1')
|
plugin_files/helpers/SettingsHelper.class.php
CHANGED
@@ -78,10 +78,6 @@ LiveChat::get_instance()->get_helper('TrackingCodeInfo');
|
|
78 |
<div class="postbox_content">
|
79 |
<table class="form-table">
|
80 |
<tr>
|
81 |
-
<th scope="row"><label for="lang">Language:</label></th>
|
82 |
-
<td><input type="text" name="lang" id="lang" value="<?php echo LiveChat::get_instance()->get_lang(); ?>" /> <span class="explanation">Chat window translation. <strong>en</strong> for English (default). <a href="http://support.livechatinc.com/entries/20161073-what-languages-are-supported-in-livechat" class="help">More info…</a></span></td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
<th scope="row"><label for="skill">Skill:</label></th>
|
86 |
<td><input type="text" name="skill" id="skill" value="<?php echo LiveChat::get_instance()->get_skill(); ?>" /> <span class="explanation">Used for skill-based routing. <strong>0</strong> for default skill (recommended).</span></td>
|
87 |
</tr>
|
@@ -147,7 +143,6 @@ LiveChat::get_instance()->get_helper('TrackingCodeInfo');
|
|
147 |
<form method="post" action="?page=livechat_settings" id="save_new_license">
|
148 |
<p>
|
149 |
<input type="hidden" name="new_license_form" value="1">
|
150 |
-
<input type="hidden" name="lang" value="en">
|
151 |
<input type="hidden" name="skill" value="0">
|
152 |
<input type="hidden" name="license_number" value="0" id="new_license_number">
|
153 |
</p>
|
78 |
<div class="postbox_content">
|
79 |
<table class="form-table">
|
80 |
<tr>
|
|
|
|
|
|
|
|
|
81 |
<th scope="row"><label for="skill">Skill:</label></th>
|
82 |
<td><input type="text" name="skill" id="skill" value="<?php echo LiveChat::get_instance()->get_skill(); ?>" /> <span class="explanation">Used for skill-based routing. <strong>0</strong> for default skill (recommended).</span></td>
|
83 |
</tr>
|
143 |
<form method="post" action="?page=livechat_settings" id="save_new_license">
|
144 |
<p>
|
145 |
<input type="hidden" name="new_license_form" value="1">
|
|
|
146 |
<input type="hidden" name="skill" value="0">
|
147 |
<input type="hidden" name="license_number" value="0" id="new_license_number">
|
148 |
</p>
|
plugin_files/helpers/TrackingCodeHelper.class.php
CHANGED
@@ -8,7 +8,6 @@ class TrackingCodeHelper extends LiveChatHelper
|
|
8 |
{
|
9 |
if (LiveChat::get_instance()->is_installed())
|
10 |
{
|
11 |
-
$lang = LiveChat::get_instance()->get_lang();
|
12 |
$skill = LiveChat::get_instance()->get_skill();
|
13 |
$license_number = LiveChat::get_instance()->get_license_number();
|
14 |
|
@@ -16,7 +15,6 @@ class TrackingCodeHelper extends LiveChatHelper
|
|
16 |
<script type="text/javascript">
|
17 |
var __lc = {};
|
18 |
__lc.license = {$license_number};
|
19 |
-
__lc.lang = '{$lang}';
|
20 |
__lc.skill = {$skill};
|
21 |
|
22 |
(function() {
|
8 |
{
|
9 |
if (LiveChat::get_instance()->is_installed())
|
10 |
{
|
|
|
11 |
$skill = LiveChat::get_instance()->get_skill();
|
12 |
$license_number = LiveChat::get_instance()->get_license_number();
|
13 |
|
15 |
<script type="text/javascript">
|
16 |
var __lc = {};
|
17 |
__lc.license = {$license_number};
|
|
|
18 |
__lc.skill = {$skill};
|
19 |
|
20 |
(function() {
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== LiveChat ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: live support, live chat, live chat software, online support, ecommerce, increase sales, customer help, customer support, livechat, live support, customer service, plugin, chat
|
4 |
-
Stable tag: 3.2.
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.1.3
|
7 |
|
@@ -28,6 +28,9 @@ Take a tour to see why you need LiveChat on your website: http://www.livechatinc
|
|
28 |
|
29 |
== Changelog ==
|
30 |
|
|
|
|
|
|
|
31 |
= 3.2.2 =
|
32 |
* Fixed CSS styles conflicts with other plugins
|
33 |
|
1 |
=== LiveChat ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: live support, live chat, live chat software, online support, ecommerce, increase sales, customer help, customer support, livechat, live support, customer service, plugin, chat
|
4 |
+
Stable tag: 3.2.3
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.1.3
|
7 |
|
28 |
|
29 |
== Changelog ==
|
30 |
|
31 |
+
= 3.2.3 =
|
32 |
+
* Romoved language parameter from Tracking Code
|
33 |
+
|
34 |
= 3.2.2 =
|
35 |
* Fixed CSS styles conflicts with other plugins
|
36 |
|