Version Description
Download this release
Release Info
Developer | AdvancedCoding |
Plugin | Comments – wpDiscuz |
Version | 5.3.4 |
Comparing to | |
See all releases |
Code changes from version 5.3.3 to 5.3.4
- class.WpdiscuzCore.php +1 -1
- readme.txt +6 -1
- templates/comment/comment-form.php +1 -1
- utils/class.WpdiscuzHelper.php +1 -1
- utils/class.WpdiscuzHelperEmail.php +1 -1
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/
|
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.4
|
7 |
* Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
|
8 |
* Author URI: https://gvectors.com/
|
9 |
* Plugin URI: http://wpdiscuz.com/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.2
|
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,6 +174,11 @@ Nothing will be lost! **Comments - wpDiscuz** will show all old comments.
|
|
174 |
|
175 |
== Changelog ==
|
176 |
|
|
|
|
|
|
|
|
|
|
|
177 |
= Comments - wpDiscuz v5.3.3 =
|
178 |
|
179 |
* Code Optimization (sanitization, filtering)
|
3 |
Tags: comment, comments, ajax comments, custom comment form, custom comment field
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.2
|
6 |
+
Stable tag: 5.3.4
|
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.4 =
|
178 |
+
|
179 |
+
* Fixed Bug: Comment Subscription bar agreement label content issue.
|
180 |
+
|
181 |
+
|
182 |
= Comments - wpDiscuz v5.3.3 =
|
183 |
|
184 |
* Code Optimization (sanitization, filtering)
|
templates/comment/comment-form.php
CHANGED
@@ -328,7 +328,7 @@ if (!post_password_required($post->ID)) {
|
|
328 |
<?php if (!$currentUser->ID && $form->isShowSubscriptionBarAgreement()): ?>
|
329 |
<div class="wpdiscuz-subscribe-agreement">
|
330 |
<input id="show_subscription_agreement" type="checkbox" required="required" name="show_subscription_agreement" value="1">
|
331 |
-
<label for="show_subscription_agreement"><?php echo
|
332 |
</div>
|
333 |
<?php endif; ?>
|
334 |
<?php wp_nonce_field('wpdiscuz_subscribe_form_nonce_action', 'wpdiscuz_subscribe_form_nonce'); ?>
|
328 |
<?php if (!$currentUser->ID && $form->isShowSubscriptionBarAgreement()): ?>
|
329 |
<div class="wpdiscuz-subscribe-agreement">
|
330 |
<input id="show_subscription_agreement" type="checkbox" required="required" name="show_subscription_agreement" value="1">
|
331 |
+
<label for="show_subscription_agreement"><?php echo $form->subscriptionBarAgreementLabel(); ?></label>
|
332 |
</div>
|
333 |
<?php endif; ?>
|
334 |
<?php wp_nonce_field('wpdiscuz_subscribe_form_nonce_action', 'wpdiscuz_subscribe_form_nonce'); ?>
|
utils/class.WpdiscuzHelper.php
CHANGED
@@ -199,7 +199,7 @@ class WpdiscuzHelper implements WpDiscuzConstants {
|
|
199 |
return false;
|
200 |
}
|
201 |
$form = $this->wpdiscuzForm->getForm($post->ID);
|
202 |
-
return $form->getFormID() && (comments_open($post) || $post->comment_count) && is_singular() && post_type_supports($post->post_type, 'comments');
|
203 |
}
|
204 |
|
205 |
public function replaceCommentContentCode($content) {
|
199 |
return false;
|
200 |
}
|
201 |
$form = $this->wpdiscuzForm->getForm($post->ID);
|
202 |
+
return apply_filters('is_load_wpdiscuz', $form->getFormID() && (comments_open($post) || $post->comment_count) && is_singular() && post_type_supports($post->post_type, 'comments'), $post);
|
203 |
}
|
204 |
|
205 |
public function replaceCommentContentCode($content) {
|
utils/class.WpdiscuzHelperEmail.php
CHANGED
@@ -128,10 +128,10 @@ class WpdiscuzHelperEmail implements WpDiscuzConstants {
|
|
128 |
$post = get_post($comment->comment_post_ID);
|
129 |
$postAuthor = get_userdata($post->post_author);
|
130 |
|
|
|
131 |
if ($emailData['email'] == $postAuthor->user_email && ((get_option('moderation_notify') && $comment->comment_approved !== '1') || (get_option('comments_notify') && $comment->comment_approved === '1'))) {
|
132 |
return;
|
133 |
}
|
134 |
-
$sendMail = apply_filters('wpdiscuz_email_notification', true, $emailData, $comment);
|
135 |
if ($sendMail) {
|
136 |
$unsubscribeUrl = !$wp_rewrite->using_permalinks() ? get_permalink($comment->comment_post_ID) . "&" : get_permalink($comment->comment_post_ID) . "?";
|
137 |
$unsubscribeUrl .= "wpdiscuzUrlAnchor&wpdiscuzSubscribeID=" . $emailData['id'] . "&key=" . $emailData['activation_key'] . '&#wc_unsubscribe_message';
|
128 |
$post = get_post($comment->comment_post_ID);
|
129 |
$postAuthor = get_userdata($post->post_author);
|
130 |
|
131 |
+
$sendMail = apply_filters('wpdiscuz_email_notification', true, $emailData, $comment);
|
132 |
if ($emailData['email'] == $postAuthor->user_email && ((get_option('moderation_notify') && $comment->comment_approved !== '1') || (get_option('comments_notify') && $comment->comment_approved === '1'))) {
|
133 |
return;
|
134 |
}
|
|
|
135 |
if ($sendMail) {
|
136 |
$unsubscribeUrl = !$wp_rewrite->using_permalinks() ? get_permalink($comment->comment_post_ID) . "&" : get_permalink($comment->comment_post_ID) . "?";
|
137 |
$unsubscribeUrl .= "wpdiscuzUrlAnchor&wpdiscuzSubscribeID=" . $emailData['id'] . "&key=" . $emailData['activation_key'] . '&#wc_unsubscribe_message';
|