WP Live Chat Support - Version 8.0.19

Version Description

  • 2018-11-19 - Medium priority =
  • Tested on WordPress 5 Beta
  • Tested Basic Gutenberg Block Support
Download this release

Release Info

Developer WP-LiveChat
Plugin Icon 128x128 WP Live Chat Support
Version 8.0.19
Comparing to
See all releases

Code changes from version 8.0.18 to 8.0.19

includes/blocks/wplc-chat-box/block.js CHANGED
@@ -4,7 +4,7 @@
4
 
5
  var __ = wp.i18n.__;
6
  var el = wp.element.createElement;
7
- var children = wp.blocks.source.children;
8
  var registerBlockType = wp.blocks.registerBlockType;
9
 
10
  String.prototype.stripSlashes = function(){
@@ -41,7 +41,7 @@
41
  }
42
 
43
  registerBlockType( 'wp-live-chat-support/wplc-chat-box', {
44
- title: __( 'WP Live Chat Trigger (WP Live Chat Support)', 'WPLC' ),
45
  icon: 'format-chat',
46
  category: 'common',
47
 
@@ -76,6 +76,7 @@
76
  output_wplc_block_text,
77
  output_wplc_block_icon
78
  );
 
79
 
80
  return el(
81
  'div',
4
 
5
  var __ = wp.i18n.__;
6
  var el = wp.element.createElement;
7
+ var children = wp.blocks.children;
8
  var registerBlockType = wp.blocks.registerBlockType;
9
 
10
  String.prototype.stripSlashes = function(){
41
  }
42
 
43
  registerBlockType( 'wp-live-chat-support/wplc-chat-box', {
44
+ title: __( 'WP Live Chat Trigger', 'WPLC' ),
45
  icon: 'format-chat',
46
  category: 'common',
47
 
76
  output_wplc_block_text,
77
  output_wplc_block_icon
78
  );
79
+
80
 
81
  return el(
82
  'div',
includes/blocks/wplc-inline-chat-box/block.js CHANGED
@@ -4,46 +4,43 @@
4
  var __ = wp.i18n.__;
5
  var el = wp.element.createElement;
6
  var Editable = wp.blocks.Editable;
7
- var children = wp.blocks.source.children;
8
  var registerBlockType = wp.blocks.registerBlockType;
9
 
10
- var chat_preview_loader = '<div class="wplc_gutenberg_loader"></div>';
11
 
12
  registerBlockType( 'wp-live-chat-support/wplc-inline-chat-box', {
13
- title: __( 'WP Live Chat Box (WP Live Chat Support)', 'WPLC' ),
14
  icon: 'format-chat',
15
  category: 'common',
16
- attributes: {
17
- content: children( 'p' ),
18
- },
19
 
20
  edit: function( props ) {
21
 
22
- var content = props.attributes.content;
23
  var focus = props.focus;
24
 
25
  function onChangeContent( newContent ) {
26
  props.setAttributes( { content: newContent } );
27
  }
28
 
29
- jQuery(document).on('change', '.wplc_select_theme', function(){
30
  var id = $(this).val();
31
  onChangeContent( id );
32
- });
33
 
34
- theme_classes = 'wplc_' + content;
35
 
36
  element = el(
37
- 'h3',
38
  { },
39
- 'Live Chat Box (WP Live Chat Support)'
40
  );
41
 
42
- select_text = el(
43
  'span',
44
  { },
45
  'Select a style: '
46
- );
47
 
48
  icon = el(
49
  'span',
@@ -58,7 +55,7 @@
58
  }
59
  );
60
 
61
- var option_1 = el(
62
  'option',
63
  { value: 'normal', selected: 'selected' },
64
  'Normal'
@@ -80,13 +77,13 @@
80
  option_1,
81
  option_2,
82
  option_3
83
- );
84
 
85
  var style = {
86
  display: 'none'
87
  }
88
 
89
- var editable_content = el(
90
  Editable,
91
  {
92
  tagName: 'p',
@@ -97,7 +94,7 @@
97
  onFocus: props.setFocus,
98
  style: style
99
  },
100
- );
101
 
102
  return el(
103
  'div',
@@ -105,9 +102,6 @@
105
  className: theme_classes
106
  },
107
  element,
108
- select_text,
109
- select,
110
- editable_content,
111
  chat_box_preview
112
  );
113
  },
4
  var __ = wp.i18n.__;
5
  var el = wp.element.createElement;
6
  var Editable = wp.blocks.Editable;
7
+ var children = wp.blocks.children;
8
  var registerBlockType = wp.blocks.registerBlockType;
9
 
10
+ var chat_preview_loader = '<span><small><em>Your chat box will show up here when page is viewed</em></small></span>';
11
 
12
  registerBlockType( 'wp-live-chat-support/wplc-inline-chat-box', {
13
+ title: __( 'WP Live Chat Box', 'WPLC' ),
14
  icon: 'format-chat',
15
  category: 'common',
 
 
 
16
 
17
  edit: function( props ) {
18
 
19
+ var content = typeof props.attributes.content !== 'undefined' ? props.attributes.content : 'normal' ;
20
  var focus = props.focus;
21
 
22
  function onChangeContent( newContent ) {
23
  props.setAttributes( { content: newContent } );
24
  }
25
 
26
+ /*jQuery(document).on('change', '.wplc_select_theme', function(){
27
  var id = $(this).val();
28
  onChangeContent( id );
29
+ });*/
30
 
31
+ theme_classes = 'wplc_' + content ;
32
 
33
  element = el(
34
+ 'h4',
35
  { },
36
+ 'Live Chat Box'
37
  );
38
 
39
+ /*select_text = el(
40
  'span',
41
  { },
42
  'Select a style: '
43
+ );*/
44
 
45
  icon = el(
46
  'span',
55
  }
56
  );
57
 
58
+ /*var option_1 = el(
59
  'option',
60
  { value: 'normal', selected: 'selected' },
61
  'Normal'
77
  option_1,
78
  option_2,
79
  option_3
80
+ );*/
81
 
82
  var style = {
83
  display: 'none'
84
  }
85
 
86
+ /*var editable_content = el(
87
  Editable,
88
  {
89
  tagName: 'p',
94
  onFocus: props.setFocus,
95
  style: style
96
  },
97
+ );*/
98
 
99
  return el(
100
  'div',
102
  className: theme_classes
103
  },
104
  element,
 
 
 
105
  chat_box_preview
106
  );
107
  },
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: WP-LiveChat, NickDuncan, CodeCabin_, 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: 4.4
6
- Tested up to: 4.9
7
  Requires PHP: 5.3
8
  Stable tag: trunk
9
  License: GPLv2
@@ -244,6 +244,10 @@ We have patched the PHPMailer vulnerability. Please update to version 7.0.02.
244
 
245
  == Changelog ==
246
 
 
 
 
 
247
  = 8.0.18 - 2018-11-01 - High Priority =
248
  * Fixed XSS vulnerability within the GDPR search system (Thanks to Tim Coen)
249
  * Fixed Self-XSS vulnerability within the message input field on both dashboard and chat box (Thanks to Tim Coen)
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: 4.4
6
+ Tested up to: 5.0
7
  Requires PHP: 5.3
8
  Stable tag: trunk
9
  License: GPLv2
244
 
245
  == Changelog ==
246
 
247
+ = 8.0.19 - 2018-11-19 - Medium priority =
248
+ * Tested on WordPress 5 Beta
249
+ * Tested Basic Gutenberg Block Support
250
+
251
  = 8.0.18 - 2018-11-01 - High Priority =
252
  * Fixed XSS vulnerability within the GDPR search system (Thanks to Tim Coen)
253
  * Fixed Self-XSS vulnerability within the message input field on both dashboard and chat box (Thanks to Tim Coen)
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.
6
- Version: 8.0.18
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
@@ -11,6 +11,10 @@
11
  */
12
 
13
  /**
 
 
 
 
14
  * 8.0.18 - 2018-11-01 - High Priority
15
  * Fixed XSS vulnerability within the GDPR search system (Thanks to Tim Coen)
16
  * Fixed Self-XSS vulnerability within the message input field on both dashboard and chat box (Thanks to Tim Coen)
@@ -698,7 +702,7 @@ global $debug_start;
698
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
699
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
700
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
701
- $wplc_version = "8.0.18";
702
 
703
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
704
  define('WPLC_BASIC_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
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.
6
+ Version: 8.0.19
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
11
  */
12
 
13
  /**
14
+ * 8.0.19 - 2018-11-19 - Medium priority
15
+ * Tested on WordPress 5 Beta
16
+ * Tested Basic Gutenberg Block Support
17
+ *
18
  * 8.0.18 - 2018-11-01 - High Priority
19
  * Fixed XSS vulnerability within the GDPR search system (Thanks to Tim Coen)
20
  * Fixed Self-XSS vulnerability within the message input field on both dashboard and chat box (Thanks to Tim Coen)
702
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
703
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
704
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
705
+ $wplc_version = "8.0.19";
706
 
707
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
708
  define('WPLC_BASIC_PLUGIN_URL', plugins_url( '/', __FILE__ ) );