Comments – wpDiscuz - Version 1.0.7

Version Description

  • Fixed Bug: wpDiscuz comments ordering conflict with wordpress comments ordering
Download this release

Release Info

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

Code changes from version 1.0.6 to 1.0.7

Files changed (3) hide show
  1. captcha/captcha.php +2 -1
  2. readme.txt +5 -2
  3. wc.php +8 -4
captcha/captcha.php CHANGED
@@ -24,8 +24,9 @@ $_SESSION['wc_captcha'][$comm_id] = md5(strtolower(trim($randomString)));
24
 
25
  $im = @imagecreatefrompng("captcha_bg_easy.png");
26
 
 
27
 
28
- imagettftext($im, 16, 0, 5, 20, imagecolorallocate($im, 0, 0, 0), 'consolai.ttf', $randomString);
29
 
30
  header('Content-type: image/png');
31
  imagepng($im, NULL, 0);
24
 
25
  $im = @imagecreatefrompng("captcha_bg_easy.png");
26
 
27
+ $font_path = './consolai.ttf';
28
 
29
+ imagettftext($im, 16, 0, 5, 20, imagecolorallocate($im, 0, 0, 0), $font_path, $randomString);
30
 
31
  header('Content-type: image/png');
32
  imagepng($im, NULL, 0);
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, 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.0.1
7
- Stable tag: 1.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -77,6 +77,9 @@ https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 1.0.6 =
81
  * Added : Option to sort comments by comment date with ascending or descending order
82
 
@@ -85,7 +88,7 @@ https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
85
  * Fixed Bug : CSS Issues
86
 
87
  = 1.0.4 =
88
- * Fixed Error: Broken plugin
89
 
90
  = 1.0.3 =
91
  * Fixed Bug : Problem with options page redirection on Wordpress multi-sites
4
  Tags: wordpress comments, ajax comments, ajax, 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.0.1
7
+ Stable tag: 1.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 1.0.7 =
81
+ * Fixed Bug: wpDiscuz comments ordering conflict with wordpress comments ordering
82
+
83
  = 1.0.6 =
84
  * Added : Option to sort comments by comment date with ascending or descending order
85
 
88
  * Fixed Bug : CSS Issues
89
 
90
  = 1.0.4 =
91
+ * Fixed Bug: Fatal error - Using $this when not in object context in ...
92
 
93
  = 1.0.3 =
94
  * Fixed Bug : Problem with options page redirection on Wordpress multi-sites
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: 1.0.6
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/
@@ -375,13 +375,17 @@ class WC_Core {
375
  'callback' => array(&$this, 'wc_comment_callback'),
376
  'style' => 'div',
377
  'per_page' => $comments_offset * $wc_comment_count,
378
- 'max_depth' => 2
 
379
  );
380
 
381
- $comments = get_comments(array('post_id' => $post_id, 'status' => 'approve', 'order' => $wc_comment_list_order));
382
-
 
 
383
  $wc_comments = $this->init_wc_comments($comments);
384
  wp_list_comments($comm_list_args, $wc_comments);
 
385
  return $this->wc_parent_comments_count;
386
  }
387
 
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: 1.0.7
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/
375
  'callback' => array(&$this, 'wc_comment_callback'),
376
  'style' => 'div',
377
  'per_page' => $comments_offset * $wc_comment_count,
378
+ 'max_depth' => 2,
379
+ 'reverse_top_level' => false
380
  );
381
 
382
+
383
+
384
+ $comments = get_comments(array('post_id' => $post_id, 'status' => 'approve', 'order' => $wc_comment_list_order));
385
+
386
  $wc_comments = $this->init_wc_comments($comments);
387
  wp_list_comments($comm_list_args, $wc_comments);
388
+
389
  return $this->wc_parent_comments_count;
390
  }
391