Comments – wpDiscuz - Version 2.1.10

Version Description

Fixed Bug: First comment redirection without setting the destination page

IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.

Download this release

Release Info

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

Code changes from version 2.1.9 to 2.1.10

Files changed (3) hide show
  1. comment-form/tpl-comment.php +1 -1
  2. readme.txt +9 -6
  3. wc.php +2 -2
comment-form/tpl-comment.php CHANGED
@@ -344,7 +344,7 @@ class WC_Comment_Template_Builder {
344
  }
345
  }
346
  $user_id = $user->ID;
347
- $wc_profile_url_data = apply_filters('wpdiscuz_profil_url', array('user_id' => $user_id, 'permalink' => ''));
348
 
349
  $wc_profile_url_filter = $wc_profile_url_data['permalink'];
350
  }
344
  }
345
  }
346
  $user_id = $user->ID;
347
+ $wc_profile_url_data = apply_filters('wpdiscuz_profile_url', array('user_id' => $user_id, 'permalink' => ''));
348
 
349
  $wc_profile_url_filter = $wc_profile_url_data['permalink'];
350
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === wpDiscuz - Wordpress Comments ===
2
  Contributors: gVectors Team
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UC44WQM5XJFPA
4
- Tags: wordpress comments, ajax comments, ajax, live update, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
5
  Requires at least: 2.7
6
- Tested up to: 4.1.1
7
- Stable tag: 2.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -127,12 +127,15 @@ http://www.gvectors.com/questions/wpdiscuz-comment-form-is-missing/
127
 
128
  == Changelog ==
129
 
 
 
 
 
 
130
  = 2.1.9 =
131
  * Added: Option to redirect first commenters to "Thank You" page
132
  * Fixed Bug: Issues with guest voting (more secure and stable)
133
 
134
- IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.
135
-
136
  = 2.1.8 =
137
  * Added: Option to allow guests vote for comments
138
  * Added: Option to load rest of all comments using the Load More Comments button
@@ -277,4 +280,4 @@ http://www.gvectors.com/questions/wpdiscuz-comment-form-is-missing/
277
  * Fixed Bug : Layout Issues with some themes
278
 
279
  = 1.0.0 =
280
- Initial version
1
  === wpDiscuz - Wordpress Comments ===
2
  Contributors: gVectors Team
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UC44WQM5XJFPA
4
+ Tags: wordpress comments, ajax comments, ajax, live update, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter
5
  Requires at least: 2.7
6
+ Tested up to: 4.2
7
+ Stable tag: 2.1.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 2.1.10 =
131
+ Fixed Bug: First comment redirection without setting the destination page
132
+
133
+ IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.
134
+
135
  = 2.1.9 =
136
  * Added: Option to redirect first commenters to "Thank You" page
137
  * Fixed Bug: Issues with guest voting (more secure and stable)
138
 
 
 
139
  = 2.1.8 =
140
  * Added: Option to allow guests vote for comments
141
  * Added: Option to load rest of all comments using the Load More Comments button
280
  * Fixed Bug : Layout Issues with some themes
281
 
282
  = 1.0.0 =
283
+ Initial version
wc.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- Version: 2.1.9
7
  Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  Author URI: http://www.gvectors.com/
9
  Plugin URI: http://www.gvectors.com/wpdiscuz/
@@ -398,7 +398,7 @@ class WC_Core {
398
  $comment = get_comment($wc_comment_id);
399
  if ($comment->comment_ID) {
400
  $wc_user_comment_count = get_comments(array('author_email' => $comment->comment_author_email, 'count' => true));
401
- if ($wc_user_comment_count == 1) {
402
  $message_array['code'] = 1;
403
  $message_array['redirect_to'] = get_permalink($this->wc_options_serialized->wpdiscuz_redirect_page);
404
  }
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ Version: 2.1.10
7
  Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  Author URI: http://www.gvectors.com/
9
  Plugin URI: http://www.gvectors.com/wpdiscuz/
398
  $comment = get_comment($wc_comment_id);
399
  if ($comment->comment_ID) {
400
  $wc_user_comment_count = get_comments(array('author_email' => $comment->comment_author_email, 'count' => true));
401
+ if ($this->wc_options_serialized->wpdiscuz_redirect_page && $wc_user_comment_count == 1) {
402
  $message_array['code'] = 1;
403
  $message_array['redirect_to'] = get_permalink($this->wc_options_serialized->wpdiscuz_redirect_page);
404
  }