Version Description
Download this release
Release Info
Developer | AdvancedCoding |
Plugin | Comments – wpDiscuz |
Version | 5.3.2 |
Comparing to | |
See all releases |
Code changes from version 5.3.1 to 5.3.2
- class.WpdiscuzCore.php +2 -4
- readme.txt +11 -4
- templates/comment/class.WpdiscuzWalker.php +4 -3
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.
|
7 |
* Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
|
8 |
* Author URI: https://gvectors.com/
|
9 |
* Plugin URI: http://wpdiscuz.com/
|
@@ -55,10 +55,8 @@ class WpdiscuzCore implements WpDiscuzConstants {
|
|
55 |
private static $_instance = null;
|
56 |
|
57 |
private function __construct() {
|
58 |
-
if (!is_admin() && !session_id()) {
|
59 |
-
session_start();
|
60 |
-
}
|
61 |
$this->version = get_option(self::OPTION_SLUG_VERSION, '1.0.0');
|
|
|
62 |
$this->dbManager = new WpdiscuzDBManager();
|
63 |
$this->optionsSerialized = new WpdiscuzOptionsSerialized($this->dbManager);
|
64 |
$this->options = new WpdiscuzOptions($this->optionsSerialized, $this->dbManager);
|
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.2
|
7 |
* Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
|
8 |
* Author URI: https://gvectors.com/
|
9 |
* Plugin URI: http://wpdiscuz.com/
|
55 |
private static $_instance = null;
|
56 |
|
57 |
private function __construct() {
|
|
|
|
|
|
|
58 |
$this->version = get_option(self::OPTION_SLUG_VERSION, '1.0.0');
|
59 |
+
wp_cookie_constants();
|
60 |
$this->dbManager = new WpdiscuzDBManager();
|
61 |
$this->optionsSerialized = new WpdiscuzOptionsSerialized($this->dbManager);
|
62 |
$this->options = new WpdiscuzOptions($this->optionsSerialized, $this->dbManager);
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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.
|
6 |
-
Stable tag: 5.3.
|
7 |
Requires PHP: 5.4 and higher
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -174,15 +174,22 @@ Nothing will be lost! **Comments - wpDiscuz** will show all old comments.
|
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
-
= Comments - wpDiscuz v5.3.
|
|
|
|
|
|
|
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.
|
2 |
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.1
|
6 |
+
Stable tag: 5.3.2
|
7 |
Requires PHP: 5.4 and higher
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
+
= Comments - wpDiscuz v5.3.2 =
|
178 |
+
|
179 |
+
* Updated: WordPress 5.1 Compatibility
|
180 |
+
* Fixed Bug: Problems with session_start() function.
|
181 |
|
|
|
182 |
|
183 |
IMPORTANT!
|
184 |
|
185 |
- Please delete all caches and press CTRL+F5 on website front-end after updating wpDiscuz
|
186 |
|
187 |
|
188 |
+
= Comments - wpDiscuz v5.3.1 =
|
189 |
+
|
190 |
+
* Fixed Bug: Hard dependency of comment author name on email.
|
191 |
+
|
192 |
+
|
193 |
= Comments - wpDiscuz v5.3.0 =
|
194 |
|
195 |
* 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
@@ -7,6 +7,7 @@ class WpdiscuzWalker extends Walker_Comment implements WpDiscuzConstants {
|
|
7 |
private $helperOptimization;
|
8 |
private $dbManager;
|
9 |
private $optionsSerialized;
|
|
|
10 |
|
11 |
public function __construct($helper, $helperOptimization, $dbManager, $optionsSerialized) {
|
12 |
$this->helper = $helper;
|
@@ -78,8 +79,8 @@ class WpdiscuzWalker extends Walker_Comment implements WpDiscuzConstants {
|
|
78 |
}
|
79 |
|
80 |
$userKey = $comment->user_id . '_' . $comment->comment_author_email . '_' . $comment->comment_author;
|
81 |
-
if (isset($
|
82 |
-
$user = $
|
83 |
} else {
|
84 |
$user = array();
|
85 |
$user['user'] = '';
|
@@ -167,7 +168,7 @@ class WpdiscuzWalker extends Walker_Comment implements WpDiscuzConstants {
|
|
167 |
}
|
168 |
}
|
169 |
}
|
170 |
-
$
|
171 |
}
|
172 |
|
173 |
if ($comment->comment_parent && $this->optionsSerialized->wordpressThreadComments) {
|
7 |
private $helperOptimization;
|
8 |
private $dbManager;
|
9 |
private $optionsSerialized;
|
10 |
+
private $users;
|
11 |
|
12 |
public function __construct($helper, $helperOptimization, $dbManager, $optionsSerialized) {
|
13 |
$this->helper = $helper;
|
79 |
}
|
80 |
|
81 |
$userKey = $comment->user_id . '_' . $comment->comment_author_email . '_' . $comment->comment_author;
|
82 |
+
if (isset($this->users[$userKey])) {
|
83 |
+
$user = $this->users[$userKey];
|
84 |
} else {
|
85 |
$user = array();
|
86 |
$user['user'] = '';
|
168 |
}
|
169 |
}
|
170 |
}
|
171 |
+
$this->users[$userKey] = $user;
|
172 |
}
|
173 |
|
174 |
if ($comment->comment_parent && $this->optionsSerialized->wordpressThreadComments) {
|