Version Description
Download this release
Release Info
Developer | AdvancedCoding |
Plugin | Comments – wpDiscuz |
Version | 7.4.2 |
Comparing to | |
See all releases |
Code changes from version 7.4.1 to 7.4.2
- class.WpdiscuzCore.php +1 -1
- forms/wpDiscuzForm.php +2 -2
- forms/wpdFormAttr/Form.php +1 -1
- readme.txt +7 -3
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.2
|
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 = empty(
|
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 = empty(
|
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($_COOKIE['wp_lang']) && ($lng = $_COOKIE['wp_lang']) ? $lng : 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 |
"comment_status" => "closed",
|
378 |
"ping_status" => "closed",
|
379 |
];
|
380 |
+
$lang = !empty($_COOKIE['wp_lang']) && ($lng = $_COOKIE['wp_lang']) ? $lng : get_user_locale();;
|
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" => empty(
|
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($_COOKIE['wp_lang']) && ($lng = $_COOKIE['wp_lang']) ? $lng : get_user_locale(),
|
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,14 +185,18 @@ Nothing will be lost! **Comments - wpDiscuz** will show all old comments.
|
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
-
= Comments - wpDiscuz v7.4.
|
189 |
|
190 |
-
*
|
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)
|
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.2
|
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.2 - 12.08.2022 =
|
189 |
|
190 |
+
* Fixed Bug: Undefined array key "wp_lang"
|
191 |
|
192 |
**IMPORTANT!**
|
193 |
|
194 |
* Please don't forget delete all caches and purge CDN after the update.
|
195 |
|
196 |
+
= Comments - wpDiscuz v7.4.1 - 11.08.2022 =
|
197 |
+
|
198 |
+
* Added: Support for dynamic language switcher on WP login page
|
199 |
+
|
200 |
= Comments - wpDiscuz v7.4 - 09.08.2022 =
|
201 |
|
202 |
* Added: Fields displaying options (logged-in users | guests)
|