Comments – wpDiscuz - Version 5.3.1

Version Description

Download this release

Release Info

Developer AdvancedCoding
Plugin Icon 128x128 Comments – wpDiscuz
Version 5.3.1
Comparing to
See all releases

Code changes from version 5.3.0 to 5.3.1

class.WpdiscuzCore.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: wpDiscuz
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- * Version: 5.3.0
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: https://gvectors.com/
9
  * Plugin URI: http://wpdiscuz.com/
3
  /*
4
  * Plugin Name: wpDiscuz
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ * Version: 5.3.1
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: https://gvectors.com/
9
  * Plugin URI: http://wpdiscuz.com/
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: gVectors Team
3
  Tags: comment, comments, ajax comments, custom comment form, custom comment field
4
  Requires at least: 4.4
5
  Tested up to: 5.0
6
- Stable tag: 5.3.0
7
  Requires PHP: 5.4 and higher
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -19,7 +19,7 @@ Comments - wpDiscuz is Multisite and RTL ready!
19
  * wpDiscuz Demo: [https://wpdiscuz.com/demo/](https://wpdiscuz.com/demo/)
20
  * wpDiscuz GDPR: [https://wpdiscuz.com/gdpr/](https://wpdiscuz.com/gdpr/)
21
  * wpDiscuz Addons: [https://wpdiscuz.com/addons/](https://wpdiscuz.com/addons)
22
- * wpDiscuz Addons Bundle: [https://gvectors.com/product/wpdiscuz-addons-bundle/)
23
  * wpDiscuz Documentation: [https://wpdiscuz.com/documentation/](https://wpdiscuz.com/documentation/)
24
 
25
  Integration with User Profile Plugins - Please read the [Integrations] Tab in wpDiscuz Settings admin page
@@ -174,6 +174,15 @@ Nothing will be lost! **Comments - wpDiscuz** will show all old comments.
174
 
175
  == Changelog ==
176
 
 
 
 
 
 
 
 
 
 
177
  = Comments - wpDiscuz v5.3.0 =
178
 
179
  * Boosted: Another large change in core to make it twice faster than before. Finally wpDiscuz becomes many times faster than the native WordPress comment system.
3
  Tags: comment, comments, ajax comments, custom comment form, custom comment field
4
  Requires at least: 4.4
5
  Tested up to: 5.0
6
+ Stable tag: 5.3.1
7
  Requires PHP: 5.4 and higher
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
19
  * wpDiscuz Demo: [https://wpdiscuz.com/demo/](https://wpdiscuz.com/demo/)
20
  * wpDiscuz GDPR: [https://wpdiscuz.com/gdpr/](https://wpdiscuz.com/gdpr/)
21
  * wpDiscuz Addons: [https://wpdiscuz.com/addons/](https://wpdiscuz.com/addons)
22
+ * wpDiscuz Addons Bundle: [https://gvectors.com/product/wpdiscuz-addons-bundle/](https://gvectors.com/product/wpdiscuz-addons-bundle/)
23
  * wpDiscuz Documentation: [https://wpdiscuz.com/documentation/](https://wpdiscuz.com/documentation/)
24
 
25
  Integration with User Profile Plugins - Please read the [Integrations] Tab in wpDiscuz Settings admin page
174
 
175
  == Changelog ==
176
 
177
+ = Comments - wpDiscuz v5.3.1 =
178
+
179
+ * Fixed Bug: Hard dependency of comment author name on email.
180
+
181
+ IMPORTANT!
182
+
183
+ - Please delete all caches and press CTRL+F5 on website front-end after updating wpDiscuz
184
+
185
+
186
  = Comments - wpDiscuz v5.3.0 =
187
 
188
  * Boosted: Another large change in core to make it twice faster than before. Finally wpDiscuz becomes many times faster than the native WordPress comment system.
templates/comment/class.WpdiscuzWalker.php CHANGED
@@ -77,7 +77,7 @@ class WpdiscuzWalker extends Walker_Comment implements WpDiscuzConstants {
77
  }
78
  }
79
 
80
- $userKey = $comment->user_id . '_' . $comment->comment_author_email;
81
  if (isset($_SESSION['wpdiscuz_users'][$userKey])) {
82
  $user = $_SESSION['wpdiscuz_users'][$userKey];
83
  } else {
77
  }
78
  }
79
 
80
+ $userKey = $comment->user_id . '_' . $comment->comment_author_email . '_' . $comment->comment_author;
81
  if (isset($_SESSION['wpdiscuz_users'][$userKey])) {
82
  $user = $_SESSION['wpdiscuz_users'][$userKey];
83
  } else {
templates/comment/comment-form.php CHANGED
@@ -2,6 +2,8 @@
2
  if (!defined('ABSPATH')) {
3
  exit();
4
  }
 
 
5
  global $post;
6
  $wpdiscuz = wpDiscuz();
7
  if (!function_exists('wpdiscuz_close_divs')) {
@@ -403,4 +405,10 @@ if (!post_password_required($post->ID)) {
403
  </div>
404
  <div id="wpdiscuz-loading-bar" class="wpdiscuz-loading-bar <?php echo ($currentUser->ID) ? 'wpdiscuz-loading-bar-auth' : 'wpdiscuz-loading-bar-unauth'; ?>"></div>
405
  <?php
 
 
 
 
 
 
406
  }
2
  if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
+
6
+ $loadStartTime = WpdiscuzHelper::getMicrotime();
7
  global $post;
8
  $wpdiscuz = wpDiscuz();
9
  if (!function_exists('wpdiscuz_close_divs')) {
405
  </div>
406
  <div id="wpdiscuz-loading-bar" class="wpdiscuz-loading-bar <?php echo ($currentUser->ID) ? 'wpdiscuz-loading-bar-auth' : 'wpdiscuz-loading-bar-unauth'; ?>"></div>
407
  <?php
408
+ $loadEndTime = WpdiscuzHelper::getMicrotime();
409
+ if (isset($_GET['wpdLoadTime'])) {
410
+ ?>
411
+ <div><?php echo $loadEndTime - $loadStartTime; ?></div>
412
+ <?php
413
+ }
414
  }
utils/class.WpdiscuzHelper.php CHANGED
@@ -124,6 +124,11 @@ class WpdiscuzHelper implements WpDiscuzConstants {
124
  }
125
  }
126
 
 
 
 
 
 
127
  /**
128
  * check if comment is still editable or not
129
  * return boolean
124
  }
125
  }
126
 
127
+ public static function getMicrotime() {
128
+ list($pfx_usec, $pfx_sec) = explode(" ", microtime());
129
+ return ((float) $pfx_usec + (float) $pfx_sec);
130
+ }
131
+
132
  /**
133
  * check if comment is still editable or not
134
  * return boolean