Comments – wpDiscuz - Version 3.2.3

Version Description

  • Fixed Bug: Unable to post a comment as guest on some servers
  • Fixed Bug: Post comment button doesn't work on some servers

IMPORTANT:

  • If you have JetPack installed please deactivate Jetpack comments, it affects wpDiscuz
  • If you have a Cache Plugin and CDN, please delete all caches and purge CDN after wpDiscuz update.
Download this release

Release Info

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

Code changes from version 3.2.2 to 3.2.3

class.WpdiscuzCore.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: wpDiscuz - Supercharged native comments
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- * Version: 3.2.2
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://gvectors.com/
9
  * Plugin URI: http://wpdiscuz.com/
3
  /*
4
  * Plugin Name: wpDiscuz - Supercharged native comments
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ * Version: 3.2.3
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://gvectors.com/
9
  * Plugin URI: http://wpdiscuz.com/
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: wordpress comments, ajax comments, ajax, live update, live comments, realtime chat, chat, realtime commenting, Lazy load, Lazy load comments, mobile commenting, post comments, advanced comment, comments box, community, discussion, discuss, disqus, discuz, Disqus alternative, Livefyre alternative, Jetpack comments alternative, Facebook comments alternative, comment form, commenting, reply, comments, better comments, discussions, comment notifications, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, email commenting, social login, boost comments, native comments
5
  Requires at least: 3.8.0
6
  Tested up to: 4.4.1
7
- Stable tag: 3.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -126,6 +126,16 @@ Support Forum: http://gvectors.com/forum/
126
 
127
  == Changelog ==
128
 
 
 
 
 
 
 
 
 
 
 
129
  = 3.2.2 =
130
 
131
  * Added: Comment section reflects post password protection
@@ -136,11 +146,6 @@ Support Forum: http://gvectors.com/forum/
136
  * Fixed Bug: Form layout issue when avatars are disabled
137
  * Fixed Bug: Incorrect comment escaping/slashing on some servers
138
 
139
- IMPORTANT:
140
-
141
- - If you have JetPack installed please deactivate Jetpack comments, it affects wpDiscuz
142
- - If you have a Cache Plugin and CDN, please delete all caches and purge CDN after wpDiscuz update.
143
-
144
  = 3.2.1 =
145
 
146
  * Fixed Bug: Notice Error Message - wp_register_script was called incorrectly.
@@ -524,4 +529,4 @@ http://gvectors.com/questions/wpdiscuz-comment-form-is-missing/
524
  * Fixed Bug : Layout Issues with some themes
525
 
526
  = 1.0.0 =
527
- Initial version
4
  Tags: wordpress comments, ajax comments, ajax, live update, live comments, realtime chat, chat, realtime commenting, Lazy load, Lazy load comments, mobile commenting, post comments, advanced comment, comments box, community, discussion, discuss, disqus, discuz, Disqus alternative, Livefyre alternative, Jetpack comments alternative, Facebook comments alternative, comment form, commenting, reply, comments, better comments, discussions, comment notifications, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, email commenting, social login, boost comments, native comments
5
  Requires at least: 3.8.0
6
  Tested up to: 4.4.1
7
+ Stable tag: 3.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
126
 
127
  == Changelog ==
128
 
129
+ = 3.2.3 =
130
+
131
+ * Fixed Bug: Unable to post a comment as guest on some servers
132
+ * Fixed Bug: Post comment button doesn't work on some servers
133
+
134
+ IMPORTANT:
135
+
136
+ - If you have JetPack installed please deactivate Jetpack comments, it affects wpDiscuz
137
+ - If you have a Cache Plugin and CDN, please delete all caches and purge CDN after wpDiscuz update.
138
+
139
  = 3.2.2 =
140
 
141
  * Added: Comment section reflects post password protection
146
  * Fixed Bug: Form layout issue when avatars are disabled
147
  * Fixed Bug: Incorrect comment escaping/slashing on some servers
148
 
 
 
 
 
 
149
  = 3.2.1 =
150
 
151
  * Fixed Bug: Notice Error Message - wp_register_script was called incorrectly.
529
  * Fixed Bug : Layout Issues with some themes
530
 
531
  = 1.0.0 =
532
+ Initial version
templates/comment/comment-form.php CHANGED
@@ -3,7 +3,7 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
  global $wpdiscuz, $post, $current_user;
6
- if (!trim($post->post_password)) {
7
  get_currentuserinfo();
8
  $wpdiscuz->dbManager->checkVoteData($post->ID);
9
  $commentsCount = $wpdiscuz->dbManager->getCommentsCount($post->ID);
3
  exit();
4
  }
5
  global $wpdiscuz, $post, $current_user;
6
+ if (!post_password_required($post->ID)) {
7
  get_currentuserinfo();
8
  $wpdiscuz->dbManager->checkVoteData($post->ID);
9
  $commentsCount = $wpdiscuz->dbManager->getCommentsCount($post->ID);
utils/class.WpdiscuzHelper.php CHANGED
@@ -508,12 +508,7 @@ class WpdiscuzHelper {
508
  imageline($im, rand(0, 20), rand(1, 50), rand(150, 180), rand(1, 50), $color);
509
  }
510
  $fileName = $prefix . '-' . $t . '.png';
511
- $filePath = $this->captchaDir . WPDISCUZ_DS . $fileName;
512
- header("Expires: Tue, 01 Jan 2014 00:00:00 GMT");
513
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
514
- header("Cache-Control: no-store, no-cache, must-revalidate");
515
- header("Cache-Control: post-check=0, pre-check=0", false);
516
- header("Pragma: no-cache");
517
  if (imagepng($im, $filePath, 5)) {
518
  $captchaData['code'] = 1;
519
  $captchaData['message'] = $fileName;
508
  imageline($im, rand(0, 20), rand(1, 50), rand(150, 180), rand(1, 50), $color);
509
  }
510
  $fileName = $prefix . '-' . $t . '.png';
511
+ $filePath = $this->captchaDir . WPDISCUZ_DS . $fileName;
 
 
 
 
 
512
  if (imagepng($im, $filePath, 5)) {
513
  $captchaData['code'] = 1;
514
  $captchaData['message'] = $fileName;