Version Description
Download this release
Release Info
Developer | AdvancedCoding |
Plugin | Comments – wpDiscuz |
Version | 7.4.1 |
Comparing to | |
See all releases |
Code changes from version 7.4 to 7.4.1
- class.WpdiscuzCore.php +1 -1
- forms/wpDiscuzForm.php +2 -2
- forms/wpdFormAttr/Form.php +1 -1
- readme.txt +9 -6
class.WpdiscuzCore.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: wpDiscuz
|
4 |
* Description: #1 WordPress Comment Plugin. Innovative, modern and feature-rich comment system to supercharge your website comment section.
|
5 |
-
* Version: 7.4
|
6 |
* Author: gVectors Team
|
7 |
* Author URI: https://gvectors.com/
|
8 |
* Plugin URI: https://wpdiscuz.com/
|
2 |
/*
|
3 |
* Plugin Name: wpDiscuz
|
4 |
* Description: #1 WordPress Comment Plugin. Innovative, modern and feature-rich comment system to supercharge your website comment section.
|
5 |
+
* Version: 7.4.1
|
6 |
* Author: gVectors Team
|
7 |
* Author URI: https://gvectors.com/
|
8 |
* Plugin URI: https://wpdiscuz.com/
|
forms/wpDiscuzForm.php
CHANGED
@@ -307,7 +307,7 @@ class wpDiscuzForm implements wpdFormConst {
|
|
307 |
} elseif (is_string($postType) && isset($this->formContentTypeRel[$postType])) {
|
308 |
$tempContentTypeRel = $this->formContentTypeRel[$postType];
|
309 |
$defaultFormID = array_shift($tempContentTypeRel);
|
310 |
-
$lang = get_user_locale();
|
311 |
$formID = isset($this->formContentTypeRel[$postType][$lang]) && $this->formContentTypeRel[$postType][$lang] ? $this->formContentTypeRel[$postType][$lang] : $defaultFormID;
|
312 |
}
|
313 |
$this->form->setFormID($formID);
|
@@ -377,7 +377,7 @@ class wpDiscuzForm implements wpdFormConst {
|
|
377 |
"comment_status" => "closed",
|
378 |
"ping_status" => "closed",
|
379 |
];
|
380 |
-
$lang = get_user_locale();
|
381 |
$formId = wp_insert_post($form);
|
382 |
$defaultFields = [];
|
383 |
$postTypes = [
|
307 |
} elseif (is_string($postType) && isset($this->formContentTypeRel[$postType])) {
|
308 |
$tempContentTypeRel = $this->formContentTypeRel[$postType];
|
309 |
$defaultFormID = array_shift($tempContentTypeRel);
|
310 |
+
$lang = empty(trim($_COOKIE['wp_lang'])) ? get_user_locale() : trim($_COOKIE['wp_lang']);
|
311 |
$formID = isset($this->formContentTypeRel[$postType][$lang]) && $this->formContentTypeRel[$postType][$lang] ? $this->formContentTypeRel[$postType][$lang] : $defaultFormID;
|
312 |
}
|
313 |
$this->form->setFormID($formID);
|
377 |
"comment_status" => "closed",
|
378 |
"ping_status" => "closed",
|
379 |
];
|
380 |
+
$lang = empty(trim($_COOKIE['wp_lang'])) ? get_user_locale() : trim($_COOKIE['wp_lang']);
|
381 |
$formId = wp_insert_post($form);
|
382 |
$defaultFields = [];
|
383 |
$postTypes = [
|
forms/wpdFormAttr/Form.php
CHANGED
@@ -596,7 +596,7 @@ class Form {
|
|
596 |
|
597 |
private function validateGeneralOptions($options) {
|
598 |
$validData = [
|
599 |
-
"lang" => get_user_locale(),
|
600 |
"roles_cannot_see_comments" => [],
|
601 |
"guest_can_see_comments" => 1,
|
602 |
"roles_cannot_comment" => [],
|
596 |
|
597 |
private function validateGeneralOptions($options) {
|
598 |
$validData = [
|
599 |
+
"lang" => empty(trim($_COOKIE['wp_lang'])) ? get_user_locale() : trim($_COOKIE['wp_lang']),
|
600 |
"roles_cannot_see_comments" => [],
|
601 |
"guest_can_see_comments" => 1,
|
602 |
"roles_cannot_comment" => [],
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: gVectors Team
|
|
3 |
Tags: comment, comments, ajax comments, comment form, comment fields
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 6.0
|
6 |
-
Stable tag: 7.4
|
7 |
Requires PHP: 5.6 and higher
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
@@ -185,6 +185,14 @@ Nothing will be lost! **Comments - wpDiscuz** will show all old comments.
|
|
185 |
|
186 |
== Changelog ==
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
= Comments - wpDiscuz v7.4 - 09.08.2022 =
|
189 |
|
190 |
* Added: Fields displaying options (logged-in users | guests)
|
@@ -194,11 +202,6 @@ Nothing will be lost! **Comments - wpDiscuz** will show all old comments.
|
|
194 |
* Fixed Bug: Getting comment form in correct locale set by user
|
195 |
* Fixed Bug: Compatibility with Akismet plugin (on edit comment)
|
196 |
|
197 |
-
|
198 |
-
**IMPORTANT!**
|
199 |
-
|
200 |
-
* Please don't forget delete all caches and purge CDN after the update.
|
201 |
-
|
202 |
= Comments - wpDiscuz v7.3.20 - 20.07.2022 =
|
203 |
|
204 |
* Fixed bug: document.querySelectorAll().forEach is not a function. (old browsers)
|
3 |
Tags: comment, comments, ajax comments, comment form, comment fields
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 7.4.1
|
7 |
Requires PHP: 5.6 and higher
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
+
= Comments - wpDiscuz v7.4.1 - 11.08.2022 =
|
189 |
+
|
190 |
+
* Added: Support for dynamic language switcher on WP login page
|
191 |
+
|
192 |
+
**IMPORTANT!**
|
193 |
+
|
194 |
+
* Please don't forget delete all caches and purge CDN after the update.
|
195 |
+
|
196 |
= Comments - wpDiscuz v7.4 - 09.08.2022 =
|
197 |
|
198 |
* Added: Fields displaying options (logged-in users | guests)
|
202 |
* Fixed Bug: Getting comment form in correct locale set by user
|
203 |
* Fixed Bug: Compatibility with Akismet plugin (on edit comment)
|
204 |
|
|
|
|
|
|
|
|
|
|
|
205 |
= Comments - wpDiscuz v7.3.20 - 20.07.2022 =
|
206 |
|
207 |
* Fixed bug: document.querySelectorAll().forEach is not a function. (old browsers)
|