Version Description
April 2 2020 = * Mod: Setting "Show links to check Emails, IPs for spam" splitted in two. * Mod: Added setting "Manage comments on public pages". * Fix: Feedback from public pages. * Fix: Output for setting "Manage comments on public pages". * Fix: Public widget errors.
Download this release
Release Info
Developer | Safronik |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 5.136.1 |
Comparing to | |
See all releases |
Code changes from version 5.136 to 5.136.1
- cleantalk.php +1 -1
- css/cleantalk-admin-settings-page.min.css +1 -1
- css/cleantalk-public-admin.min.css +1 -1
- inc/cleantalk-admin.php +5 -8
- inc/cleantalk-public.php +19 -9
- inc/cleantalk-settings.php +11 -6
- inc/cleantalk-widget.php +5 -4
- lib/CleantalkState.php +3 -2
- readme.txt +8 -1
cleantalk.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Anti-Spam by CleanTalk
|
4 |
Plugin URI: https://cleantalk.org
|
5 |
Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms.
|
6 |
-
Version: 5.136
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: https://cleantalk.org
|
9 |
Text Domain: cleantalk
|
3 |
Plugin Name: Anti-Spam by CleanTalk
|
4 |
Plugin URI: https://cleantalk.org
|
5 |
Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms.
|
6 |
+
Version: 5.136.1
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: https://cleantalk.org
|
9 |
Text Domain: cleantalk
|
css/cleantalk-admin-settings-page.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.apbct_settings-field_content,.
|
1 |
+
.apbct_settings-field_content,.apbct_settings-field_title--radio,.cleantalk_link-auto,.cleantalk_link-manual,.ct-warning-test-failed,.ct_rate_block,.ct_settings_banner,i.animate-spin{display:inline-block}#apbctTopWarning{margin-bottom:5px}#apbctTopWarning h3{margin:10px 0 5px}#apbctTopWarning h4{margin:10px}#apbctTopWarning h4 span{margin-top:5px}.apbct_settings-subtitle{position:relative;top:-15px;margin:0}.apbct_settings-field_wrapper{margin:15px 0}.apbct_settings-field_wrapper--sub{margin-left:30px!important}.apbct_settings__label{margin-right:10px;font-size:17px;vertical-align:text-bottom}.apbct_settings-field_content--radio{width:70%}.apbct_settings-field_title--radio{margin:0;width:210px;padding-right:10px;font-size:14px;vertical-align:top}.apbct_input_text{min-width:255px;width:400px}.apbct_settings-field--api_key{font-size:14pt}.apbct_settings-long_description---show:hover{color:#aaa;cursor:pointer}.cleantalk_link{text-decoration:none;font-size:13px;line-height:26px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.cleantalk_link-auto{background:#ccc;border-color:#999;-webkit-box-shadow:inset 0 1px 0 rgba(200,200,200,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(200,200,200,.5),0 1px 0 rgba(0,0,0,.15);color:#000;height:28px;-webkit-border-radius:2px;border-radius:2px}.cleantalk_link-auto:hover{color:#fff}.cleantalk_link-manual{background:#2ea2cc;border-color:#0074a2;-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);color:#fff;-webkit-border-radius:3px;border-radius:3px;text-align:center}.cleantalk_link-manual:hover{color:#000}.cleantalk_link[disabled=disabled]{background:#5d9db5;color:#000}.apbct_status_icon{vertical-align:text-bottom;margin:0 5px 0 8px}a.ct_support_link{color:#666;margin-right:.5em;font-size:10pt;font-weight:400}.ct-warning-test-failed{position:relative;padding:5px;margin:4px;border:3px solid rgba(240,50,50,1);border-radius:5px;background-color:rgba(255,200,200,1)}.ct_settings_banner{text-align:right;width:100%;margin:1em 0;vertical-align:top}#ct_translate_plugin{margin-left:0}.ct_rate_block{width:370px;margin-right:3em;padding:.8em .8em 15px;text-align:center;border:1px dashed #666}#ct_translate_plugin .apbct_button_rate{margin-bottom:10px}.apbct_long_desc{position:absolute;background:#5a5a5a;min-width:80px;min-height:80px;max-width:500px;padding:10px;color:#fff;z-index:10}i.animate-spin{-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;font-size:25px;line-height:20px;color:rgba(120,200,230,1);margin:25px}@keyframes spin{to{transform:rotate(359deg)}}.apbct_long_desc__cancel{position:absolute;top:5px;right:5px;color:rgba(255,255,255,.5)}.apbct_long_desc__cancel:hover{color:#fff}.apbct_long_desc__angle{position:absolute;top:5px;left:-17px;width:10px;height:10px;background:#5a5a5a;-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg);-webkit-transform-origin:100% 100%;-ms-transform-origin:100% 100%;transform-origin:100% 100%}.apbct_long_desc__title{color:rgba(120,200,230,1);margin:0}
|
css/cleantalk-public-admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ct_hidden{display:none}.ct_comment_info{font-size:11px;line-height:12px;margin-bottom:15px}.ct_comment_titles{border-bottom:1px solid gray!important;background:inherit;margin-bottom:15px}p.ct_comment_info_title{display:inline-block}p.ct_comment_logo_title{float:right;display:inline-block}.ct_comment_logo_img{height:12px;vertical-align:text-top;box-shadow:transparent 0 0 0!important}.ct_this_is{padding:2px 3px;cursor:pointer;white-space:nowrap;color:#000!important;background:rgba(230,230,230,1);border:1px solid #777;border-radius:4px}p.ct_feedback_wrap{display:none;position:absolute;top:
|
1 |
+
.ct_hidden{display:none}.ct_comment_info{position:relative;font-size:11px;line-height:12px;margin-bottom:15px}.ct_comment_titles{border-bottom:1px solid gray!important;background:inherit;margin-bottom:15px}p.ct_comment_info_title{display:inline-block}p.ct_comment_logo_title{float:right;display:inline-block}.ct_comment_logo_img{height:12px;vertical-align:text-top;box-shadow:transparent 0 0 0!important}.ct_this_is{padding:2px 3px;cursor:pointer;white-space:nowrap;color:#000!important;background:rgba(230,230,230,1);border:1px solid #777;border-radius:4px}p.ct_feedback_wrap{display:none;position:absolute;top:37px;width:100%;height:27px;background:#fff;margin:0;padding:6px;border-radius:3px}.ct_feedback_result{display:none;text-decoration:underline}.ct_feedback_result_spam{color:red}.ct_feedback_result_not_spam{color:green}.ct_feedback_msg a{color:green!important;text-decoration:underline}.ct_feedback_success{color:green}.ct_feedback_error{color:red}.ct_feedback_no_hash{color:#00f}
|
inc/cleantalk-admin.php
CHANGED
@@ -606,14 +606,11 @@ function apbct_comment__send_feedback($comment_id = null, $comment_status = null
|
|
606 |
if( ! $direct_call ){
|
607 |
check_ajax_referer('ct_secret_nonce', 'security');
|
608 |
}
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
if( ! $change_status )
|
615 |
-
$change_status = !empty($_POST['change_status']) ? $_POST['change_status'] : false;
|
616 |
-
|
617 |
// If enter params is empty exit
|
618 |
if( ! $comment_id || ! $comment_status )
|
619 |
die();
|
606 |
if( ! $direct_call ){
|
607 |
check_ajax_referer('ct_secret_nonce', 'security');
|
608 |
}
|
609 |
+
|
610 |
+
$comment_id = ! $comment_id && isset( $_POST['comment_id'] ) ? $_POST['comment_id'] : false;
|
611 |
+
$comment_status = ! $comment_status && isset( $_POST['comment_status'] ) ? $_POST['comment_status'] : false;
|
612 |
+
$change_status = ! $change_status && isset( $_POST['change_status'] ) ? $_POST['change_status'] : false;
|
613 |
+
|
|
|
|
|
|
|
614 |
// If enter params is empty exit
|
615 |
if( ! $comment_id || ! $comment_status )
|
616 |
die();
|
inc/cleantalk-public.php
CHANGED
@@ -3641,10 +3641,10 @@ function ct_enqueue_scripts_public($hook){
|
|
3641 |
}
|
3642 |
}
|
3643 |
|
3644 |
-
// Show controls for
|
3645 |
if(in_array("administrator", $current_user->roles)){
|
3646 |
|
3647 |
-
if($apbct->settings['
|
3648 |
|
3649 |
$ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
|
3650 |
|
@@ -3679,11 +3679,15 @@ function ct_enqueue_scripts_public($hook){
|
|
3679 |
function ct_wp_list_comments_args($options){
|
3680 |
|
3681 |
global $current_user, $apbct;
|
3682 |
-
|
3683 |
-
if(in_array("administrator", $current_user->roles))
|
3684 |
-
if($apbct->settings['
|
|
|
|
|
3685 |
$options['end-callback'] = 'ct_comments_output';
|
3686 |
-
|
|
|
|
|
3687 |
return $options;
|
3688 |
}
|
3689 |
|
@@ -3691,7 +3695,9 @@ function ct_wp_list_comments_args($options){
|
|
3691 |
* Callback function for the bootom comment output.
|
3692 |
*/
|
3693 |
function ct_comments_output($curr_comment, $param2, $wp_list_comments_args){
|
3694 |
-
|
|
|
|
|
3695 |
$email = $curr_comment->comment_author_email;
|
3696 |
$ip = $curr_comment->comment_author_IP;
|
3697 |
$id = $curr_comment->comment_ID;
|
@@ -3735,8 +3741,12 @@ function ct_comments_output($curr_comment, $param2, $wp_list_comments_args){
|
|
3735 |
echo "</p>";
|
3736 |
|
3737 |
echo "</div>";
|
3738 |
-
|
3739 |
-
$ending_tag =
|
|
|
|
|
|
|
|
|
3740 |
|
3741 |
// Ending comment output
|
3742 |
echo "</{$ending_tag}>";
|
3641 |
}
|
3642 |
}
|
3643 |
|
3644 |
+
// Show controls for commentaries
|
3645 |
if(in_array("administrator", $current_user->roles)){
|
3646 |
|
3647 |
+
if($apbct->settings['manage_comments_on_public_page']){
|
3648 |
|
3649 |
$ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
|
3650 |
|
3679 |
function ct_wp_list_comments_args($options){
|
3680 |
|
3681 |
global $current_user, $apbct;
|
3682 |
+
|
3683 |
+
if(in_array("administrator", $current_user->roles)){
|
3684 |
+
if($apbct->settings['manage_comments_on_public_page']) {
|
3685 |
+
$theme = wp_get_theme();
|
3686 |
+
$apbct->active_theme = $theme->get( 'Name' );
|
3687 |
$options['end-callback'] = 'ct_comments_output';
|
3688 |
+
}
|
3689 |
+
}
|
3690 |
+
|
3691 |
return $options;
|
3692 |
}
|
3693 |
|
3695 |
* Callback function for the bootom comment output.
|
3696 |
*/
|
3697 |
function ct_comments_output($curr_comment, $param2, $wp_list_comments_args){
|
3698 |
+
|
3699 |
+
global $apbct;
|
3700 |
+
|
3701 |
$email = $curr_comment->comment_author_email;
|
3702 |
$ip = $curr_comment->comment_author_IP;
|
3703 |
$id = $curr_comment->comment_ID;
|
3741 |
echo "</p>";
|
3742 |
|
3743 |
echo "</div>";
|
3744 |
+
|
3745 |
+
$ending_tag = $wp_list_comments_args['style'];
|
3746 |
+
|
3747 |
+
if( $apbct->active_theme === 'Paperio' ){
|
3748 |
+
$ending_tag = is_null($wp_list_comments_args['style']) ? 'div' : $wp_list_comments_args['style'];
|
3749 |
+
};
|
3750 |
|
3751 |
// Ending comment output
|
3752 |
echo "</{$ending_tag}>";
|
inc/cleantalk-settings.php
CHANGED
@@ -216,10 +216,6 @@ function apbct_settings__set_fileds( $fields ){
|
|
216 |
'title' => __('BuddyPress Private Messages', 'cleantalk'),
|
217 |
'description' => __('Check buddyPress private messages.', 'cleantalk'),
|
218 |
),
|
219 |
-
'check_comments_number' => array(
|
220 |
-
'title' => __("Don't check trusted user's comments", 'cleantalk'),
|
221 |
-
'description' => sprintf(__("Don't check comments for users with above %d comments.", 'cleantalk'), defined('CLEANTALK_CHECK_COMMENTS_NUMBER') ? CLEANTALK_CHECK_COMMENTS_NUMBER : 3),
|
222 |
-
),
|
223 |
'remove_old_spam' => array(
|
224 |
'title' => __('Automatically delete spam comments', 'cleantalk'),
|
225 |
'description' => sprintf(__('Delete spam comments older than %d days.', 'cleantalk'), $apbct->data['spam_store_days']),
|
@@ -229,8 +225,13 @@ function apbct_settings__set_fileds( $fields ){
|
|
229 |
'description' => __('Remove links from approved comments. Replace it with "[Link deleted]"', 'cleantalk'),
|
230 |
),
|
231 |
'show_check_links' => array(
|
232 |
-
'title' => __('Show links to check Emails, IPs for spam
|
233 |
-
'description' => __('Shows little icon near IP addresses and Emails allowing you to check it via CleanTalk\'s database.
|
|
|
|
|
|
|
|
|
|
|
234 |
'display' => !$apbct->white_label,
|
235 |
),
|
236 |
),
|
@@ -244,6 +245,10 @@ function apbct_settings__set_fileds( $fields ){
|
|
244 |
'title' => __("Protect logged in Users", 'cleantalk'),
|
245 |
'description' => __('Turn this option on to check for spam any submissions (comments, contact forms and etc.) from registered Users.', 'cleantalk'),
|
246 |
),
|
|
|
|
|
|
|
|
|
247 |
'use_ajax' => array(
|
248 |
'title' => __('Use AJAX for JavaScript check', 'cleantalk'),
|
249 |
'description' => __('Options helps protect WordPress against spam with any caching plugins. Turn this option on to avoid issues with caching plugins.', 'cleantalk'),
|
216 |
'title' => __('BuddyPress Private Messages', 'cleantalk'),
|
217 |
'description' => __('Check buddyPress private messages.', 'cleantalk'),
|
218 |
),
|
|
|
|
|
|
|
|
|
219 |
'remove_old_spam' => array(
|
220 |
'title' => __('Automatically delete spam comments', 'cleantalk'),
|
221 |
'description' => sprintf(__('Delete spam comments older than %d days.', 'cleantalk'), $apbct->data['spam_store_days']),
|
225 |
'description' => __('Remove links from approved comments. Replace it with "[Link deleted]"', 'cleantalk'),
|
226 |
),
|
227 |
'show_check_links' => array(
|
228 |
+
'title' => __('Show links to check Emails, IPs for spam', 'cleantalk'),
|
229 |
+
'description' => __('Shows little icon near IP addresses and Emails allowing you to check it via CleanTalk\'s database.', 'cleantalk'),
|
230 |
+
'display' => !$apbct->white_label,
|
231 |
+
),
|
232 |
+
'manage_comments_on_public_page' => array(
|
233 |
+
'title' => __('Manage comments on public pages', 'cleantalk'),
|
234 |
+
'description' => __('Allows administrators to manage comments on public post\'s pages with small interactive menu.', 'cleantalk'),
|
235 |
'display' => !$apbct->white_label,
|
236 |
),
|
237 |
),
|
245 |
'title' => __("Protect logged in Users", 'cleantalk'),
|
246 |
'description' => __('Turn this option on to check for spam any submissions (comments, contact forms and etc.) from registered Users.', 'cleantalk'),
|
247 |
),
|
248 |
+
'check_comments_number' => array(
|
249 |
+
'title' => __("Don't check trusted user's comments", 'cleantalk'),
|
250 |
+
'description' => sprintf(__("Don't check comments for users with above %d comments.", 'cleantalk'), defined('CLEANTALK_CHECK_COMMENTS_NUMBER') ? CLEANTALK_CHECK_COMMENTS_NUMBER : 3),
|
251 |
+
),
|
252 |
'use_ajax' => array(
|
253 |
'title' => __('Use AJAX for JavaScript check', 'cleantalk'),
|
254 |
'description' => __('Options helps protect WordPress against spam with any caching plugins. Turn this option on to avoid issues with caching plugins.', 'cleantalk'),
|
inc/cleantalk-widget.php
CHANGED
@@ -32,6 +32,7 @@ class cleantalk_widget extends WP_Widget
|
|
32 |
{
|
33 |
global $apbct;
|
34 |
|
|
|
35 |
$title = apply_filters( 'widget_title', $instance['title'] );
|
36 |
echo $args['before_widget'];
|
37 |
|
@@ -94,10 +95,10 @@ class cleantalk_widget extends WP_Widget
|
|
94 |
echo '<p>'
|
95 |
.'<label for="' . $this->get_field_id( 'style' ) . '">' . __( 'Style:', 'cleantalk' ) . '</label>'
|
96 |
.'<select id="'.$this->get_field_id( 'style' ).'" class="widefat" name="'.$this->get_field_name( 'style' ).'">'
|
97 |
-
.'<option '.($style == 'cleantalk' ? selected : '').' value="cleantalk">'.__('CleanTalk\'s Style', 'cleantalk').'</option>'
|
98 |
-
.'<option '.($style == 'light' ? selected : '').' value="light">'.__('Light', 'cleantalk').'</option>'
|
99 |
-
.'<option '.($style == 'ex_light' ? selected : '').' value="ex_light">'.__('Extremely Light', 'cleantalk').'</option>'
|
100 |
-
.'<option '.($style == 'dark' ? selected : '').' value="dark">'.__('Dark', 'cleantalk').'</option>'
|
101 |
.'</select>'
|
102 |
.'</p>';
|
103 |
// Ref ID
|
32 |
{
|
33 |
global $apbct;
|
34 |
|
35 |
+
$instance['title'] = isset( $instance['title'] ) ? $instance['title'] : __( 'Spam blocked', 'cleantalk' );
|
36 |
$title = apply_filters( 'widget_title', $instance['title'] );
|
37 |
echo $args['before_widget'];
|
38 |
|
95 |
echo '<p>'
|
96 |
.'<label for="' . $this->get_field_id( 'style' ) . '">' . __( 'Style:', 'cleantalk' ) . '</label>'
|
97 |
.'<select id="'.$this->get_field_id( 'style' ).'" class="widefat" name="'.$this->get_field_name( 'style' ).'">'
|
98 |
+
.'<option '.($style == 'cleantalk' ? 'selected' : '').' value="cleantalk">'.__('CleanTalk\'s Style', 'cleantalk').'</option>'
|
99 |
+
.'<option '.($style == 'light' ? 'selected' : '').' value="light">'.__('Light', 'cleantalk').'</option>'
|
100 |
+
.'<option '.($style == 'ex_light' ? 'selected' : '').' value="ex_light">'.__('Extremely Light', 'cleantalk').'</option>'
|
101 |
+
.'<option '.($style == 'dark' ? 'selected' : '').' value="dark">'.__('Dark', 'cleantalk').'</option>'
|
102 |
.'</select>'
|
103 |
.'</p>';
|
104 |
// Ref ID
|
lib/CleantalkState.php
CHANGED
@@ -72,8 +72,9 @@ class CleantalkState
|
|
72 |
'bp_private_messages' => 1, //buddyPress private messages test => ON
|
73 |
'check_comments_number' => 1,
|
74 |
'remove_old_spam' => 0,
|
75 |
-
'remove_comments_links' => 0, //Removes links from approved comments
|
76 |
-
'show_check_links' => 1, //Shows check link to Cleantalk's DB.
|
|
|
77 |
|
78 |
// Data processing
|
79 |
'protect_logged_in' => 1, // Do anit-spam tests to for logged in users.
|
72 |
'bp_private_messages' => 1, //buddyPress private messages test => ON
|
73 |
'check_comments_number' => 1,
|
74 |
'remove_old_spam' => 0,
|
75 |
+
'remove_comments_links' => 0, // Removes links from approved comments
|
76 |
+
'show_check_links' => 1, // Shows check link to Cleantalk's DB.
|
77 |
+
'manage_comments_on_public_page' => 0, // Allows to control comments on public page.
|
78 |
|
79 |
// Data processing
|
80 |
'protect_logged_in' => 1, // Do anit-spam tests to for logged in users.
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: spam, antispam, woocommerce, comments, firewall
|
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.4
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 5.136
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
@@ -566,6 +566,13 @@ If your website has forms that send data to external sources, you can enable opt
|
|
566 |
|
567 |
== Changelog ==
|
568 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
569 |
= 5.136 April 1 2020 =
|
570 |
* New: Feature allowing to track missed spam requests with the special plugin.
|
571 |
* Mod: Enable WooCommerce checkout test by default.
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.4
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 5.136.1
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
566 |
|
567 |
== Changelog ==
|
568 |
|
569 |
+
= 5.136.1 April 2 2020 =
|
570 |
+
* Mod: Setting "Show links to check Emails, IPs for spam" splitted in two.
|
571 |
+
* Mod: Added setting "Manage comments on public pages".
|
572 |
+
* Fix: Feedback from public pages.
|
573 |
+
* Fix: Output for setting "Manage comments on public pages".
|
574 |
+
* Fix: Public widget errors.
|
575 |
+
|
576 |
= 5.136 April 1 2020 =
|
577 |
* New: Feature allowing to track missed spam requests with the special plugin.
|
578 |
* Mod: Enable WooCommerce checkout test by default.
|