Version Description
- 2017-02-15 =
- Fixed a bug that caused messages to be returned encoded after refreshing the page
- Fixed a bug that caused the incorrect agent name to be used in the chat window
- Fixed a bug that caused the 'No Answer' text to not save and show in the chat window
Download this release
Release Info
Developer | WP-LiveChat |
Plugin | WP Live Chat Support |
Version | 7.0.04 |
Comparing to | |
See all releases |
Code changes from version 7.0.05 to 7.0.04
- js/wplc_plugin_row.js +0 -19
- modules/module_subscribe.php +4 -14
- readme.txt +3 -6
- wp-live-chat-support.php +4 -7
js/wplc_plugin_row.js
CHANGED
@@ -5,7 +5,6 @@ jQuery(document).ready(function(){
|
|
5 |
var a_email = jQuery("#wplc_signup_newsletter").val();
|
6 |
jQuery("#wplc_signup_newsletter").hide('slow');
|
7 |
jQuery("#wplc_signup_newsletter_btn").hide('slow');
|
8 |
-
jQuery("#wplc_signup_newsletter_hide").hide('slow');
|
9 |
jQuery("#wplc_subscribe_div").html("Thank you!");
|
10 |
var data = {
|
11 |
action: 'wplc_subscribe',
|
@@ -29,22 +28,4 @@ jQuery(document).ready(function(){
|
|
29 |
|
30 |
|
31 |
});
|
32 |
-
jQuery("body").on("click", "#wplc_signup_newsletter_hide", function() {
|
33 |
-
|
34 |
-
jQuery(".wplc_sub_div").hide("fast");
|
35 |
-
jQuery("#wplc_signup_newsletter").hide('slow');
|
36 |
-
jQuery("#wplc_signup_newsletter_btn").hide('slow');
|
37 |
-
jQuery("#wplc_signup_newsletter_hide").hide('slow');
|
38 |
-
|
39 |
-
var data = {
|
40 |
-
action: 'wplc_subscribe_hide',
|
41 |
-
security: wplc_sub_nonce
|
42 |
-
|
43 |
-
};
|
44 |
-
jQuery.post(ajaxurl, data, function(response) {
|
45 |
-
|
46 |
-
});
|
47 |
-
|
48 |
-
|
49 |
-
});
|
50 |
});
|
5 |
var a_email = jQuery("#wplc_signup_newsletter").val();
|
6 |
jQuery("#wplc_signup_newsletter").hide('slow');
|
7 |
jQuery("#wplc_signup_newsletter_btn").hide('slow');
|
|
|
8 |
jQuery("#wplc_subscribe_div").html("Thank you!");
|
9 |
var data = {
|
10 |
action: 'wplc_subscribe',
|
28 |
|
29 |
|
30 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
});
|
modules/module_subscribe.php
CHANGED
@@ -10,16 +10,15 @@ add_filter( 'plugin_action_links_wp-live-chat-support/wp-live-chat-support.php',
|
|
10 |
function wplc_plugin_action_links( $links ) {
|
11 |
|
12 |
array_unshift( $links,
|
13 |
-
'<a class="edit" href="' . admin_url('
|
14 |
array_unshift( $links,
|
15 |
-
'<a class="" target="_BLANK" href="
|
16 |
|
17 |
|
18 |
return $links;
|
19 |
}
|
20 |
|
21 |
add_action( 'wp_ajax_wplc_subscribe','wplc_ajax_subscribe');
|
22 |
-
add_action( 'wp_ajax_wplc_subscribe_hide','wplc_ajax_subscribe');
|
23 |
|
24 |
function wplc_ajax_subscribe() {
|
25 |
$check = check_ajax_referer( 'wplc_subscribe', 'security' );
|
@@ -27,16 +26,8 @@ function wplc_ajax_subscribe() {
|
|
27 |
if ( $_POST['action'] == 'wplc_subscribe' ) {
|
28 |
$uid = get_current_user_id();
|
29 |
update_user_meta( $uid, 'wplc_subscribed', true);
|
30 |
-
echo "1";
|
31 |
-
die();
|
32 |
|
33 |
}
|
34 |
-
if ( $_POST['action'] == 'wplc_subscribe_hide' ) {
|
35 |
-
$uid = get_current_user_id();
|
36 |
-
update_user_meta( $uid, 'wplc_subscribed', true);
|
37 |
-
echo "1";
|
38 |
-
die();
|
39 |
-
}
|
40 |
}
|
41 |
}
|
42 |
|
@@ -74,13 +65,12 @@ function wplc_plugin_row( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
|
74 |
}
|
75 |
|
76 |
if (!$check) {
|
77 |
-
$ret = '<div
|
78 |
$ret .= '<form>';
|
79 |
$ret .= '<p><label for="wplc_signup_newsletter" style="font-style:italic; margin-bottom:5px;">' . __( 'Sign up to our newsletter and get information on the latest updates, beta versions and specials.', 'wplivechat' ) . '</label></p>';
|
80 |
$ret .= '<span id="wplc_subscribe_div">';
|
81 |
$ret .= '<input type="text" name="wplc_signup_newsletter" id="wplc_signup_newsletter" value="'. $user_email .'"></option>';
|
82 |
-
$ret .= '<input type="button" class="button button-primary" id="wplc_signup_newsletter_btn" name="wplc_signup_newsletter_btn" value="' . __( 'Sign up', 'wplivechat' ) . '" />
|
83 |
-
$ret .= '<input type="button" class="button button-secondary" id="wplc_signup_newsletter_hide" name="wplc_signup_newsletter_hide" value="' . __( 'Hide', 'wplivechat' ) . '" />';
|
84 |
$ret .= '<span>';
|
85 |
$ret .= '</form>';
|
86 |
$ret .= '</div>';
|
10 |
function wplc_plugin_action_links( $links ) {
|
11 |
|
12 |
array_unshift( $links,
|
13 |
+
'<a class="edit" href="' . admin_url('edit.php?post_type=contact-forms-nd&page=wpcf-settings') . '">' . __( 'Settings', 'wplivechat' ) . '</a>' );
|
14 |
array_unshift( $links,
|
15 |
+
'<a class="" target="_BLANK" href="http://www.contactformready.com/extensions/?utm_source=plugin&utm_medium=link&utm_campaign=extensions">' . __( 'Extensions', 'wplivechat' ) . '</a>' );
|
16 |
|
17 |
|
18 |
return $links;
|
19 |
}
|
20 |
|
21 |
add_action( 'wp_ajax_wplc_subscribe','wplc_ajax_subscribe');
|
|
|
22 |
|
23 |
function wplc_ajax_subscribe() {
|
24 |
$check = check_ajax_referer( 'wplc_subscribe', 'security' );
|
26 |
if ( $_POST['action'] == 'wplc_subscribe' ) {
|
27 |
$uid = get_current_user_id();
|
28 |
update_user_meta( $uid, 'wplc_subscribed', true);
|
|
|
|
|
29 |
|
30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
}
|
33 |
|
65 |
}
|
66 |
|
67 |
if (!$check) {
|
68 |
+
$ret = '<div style="margin-top:10px; color:#333; display:block; white-space:normal;">';
|
69 |
$ret .= '<form>';
|
70 |
$ret .= '<p><label for="wplc_signup_newsletter" style="font-style:italic; margin-bottom:5px;">' . __( 'Sign up to our newsletter and get information on the latest updates, beta versions and specials.', 'wplivechat' ) . '</label></p>';
|
71 |
$ret .= '<span id="wplc_subscribe_div">';
|
72 |
$ret .= '<input type="text" name="wplc_signup_newsletter" id="wplc_signup_newsletter" value="'. $user_email .'"></option>';
|
73 |
+
$ret .= '<input type="button" class="button button-primary" id="wplc_signup_newsletter_btn" name="wplc_signup_newsletter_btn" value="' . __( 'Sign up', 'wplivechat' ) . '" />';
|
|
|
74 |
$ret .= '<span>';
|
75 |
$ret .= '</form>';
|
76 |
$ret .= '</div>';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WP-LiveChat, NickDuncan, CodeCabin_, Jarryd Long, dylanauty
|
|
3 |
Donate link: http://www.wp-livechat.com
|
4 |
Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, live help
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.7
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
|
@@ -220,15 +220,12 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.4.0
|
|
220 |
|
221 |
== Changelog ==
|
222 |
|
223 |
-
= 7.0.
|
224 |
-
* Fixed broken links in the plugins page
|
225 |
-
|
226 |
-
= 7.0.04 - 2017-02-15 - Medium priority =
|
227 |
* Fixed a bug that caused messages to be returned encoded after refreshing the page
|
228 |
* Fixed a bug that caused the incorrect agent name to be used in the chat window
|
229 |
* Fixed a bug that caused the 'No Answer' text to not save and show in the chat window
|
230 |
|
231 |
-
= 7.0.03 - 2017-02-06
|
232 |
* Fixed a bug that caused the name of the agent to disappear after refreshing the page
|
233 |
* Fixed a bug that caused the agent name to display twice in the chat window
|
234 |
|
3 |
Donate link: http://www.wp-livechat.com
|
4 |
Tags: live chat, live support, chat plugin, live help, wordpress live chat, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, live help
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 4.7
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
|
220 |
|
221 |
== Changelog ==
|
222 |
|
223 |
+
= 7.0.04 - 2017-02-15 =
|
|
|
|
|
|
|
224 |
* Fixed a bug that caused messages to be returned encoded after refreshing the page
|
225 |
* Fixed a bug that caused the incorrect agent name to be used in the chat window
|
226 |
* Fixed a bug that caused the 'No Answer' text to not save and show in the chat window
|
227 |
|
228 |
+
= 7.0.03 - 2017-02-06 =
|
229 |
* Fixed a bug that caused the name of the agent to disappear after refreshing the page
|
230 |
* Fixed a bug that caused the agent name to display twice in the chat window
|
231 |
|
wp-live-chat-support.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Live Chat Support
|
4 |
Plugin URI: http://www.wp-livechat.com
|
5 |
Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
|
6 |
-
Version: 7.0.
|
7 |
Author: WP-LiveChat
|
8 |
Author URI: http://www.wp-livechat.com
|
9 |
Text Domain: wplivechat
|
@@ -11,16 +11,13 @@
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* 7.0.
|
15 |
-
* Fixed broken links on the plugins page
|
16 |
-
*
|
17 |
-
* 7.0.04 - 2017-02-15 - Medium priority
|
18 |
* Fixed a bug that caused messages to be returned encoded after refreshing the page
|
19 |
* Fixed a bug that caused the incorrect agent name to be used in the chat window
|
20 |
* Fixed a bug that caused the 'No Answer' text to not save and show in the chat window
|
21 |
*
|
22 |
*
|
23 |
-
* 7.0.03 - 2017-02-06
|
24 |
* Fixed a bug that caused the name of the agent to disappear after refreshing the page
|
25 |
* Fixed a bug that caused the agent name to display twice in the chat window
|
26 |
*
|
@@ -486,7 +483,7 @@ global $wplc_tblname_offline_msgs;
|
|
486 |
$wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
|
487 |
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
488 |
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
489 |
-
$wplc_version = "7.0.
|
490 |
|
491 |
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
492 |
define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
|
3 |
Plugin Name: WP Live Chat Support
|
4 |
Plugin URI: http://www.wp-livechat.com
|
5 |
Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
|
6 |
+
Version: 7.0.04
|
7 |
Author: WP-LiveChat
|
8 |
Author URI: http://www.wp-livechat.com
|
9 |
Text Domain: wplivechat
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* 7.0.04 - 2017-02-15
|
|
|
|
|
|
|
15 |
* Fixed a bug that caused messages to be returned encoded after refreshing the page
|
16 |
* Fixed a bug that caused the incorrect agent name to be used in the chat window
|
17 |
* Fixed a bug that caused the 'No Answer' text to not save and show in the chat window
|
18 |
*
|
19 |
*
|
20 |
+
* 7.0.03 - 2017-02-06
|
21 |
* Fixed a bug that caused the name of the agent to disappear after refreshing the page
|
22 |
* Fixed a bug that caused the agent name to display twice in the chat window
|
23 |
*
|
483 |
$wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
|
484 |
$wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
|
485 |
$wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
|
486 |
+
$wplc_version = "7.0.04";
|
487 |
|
488 |
define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
|
489 |
define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
|