From b805bd5d139ff73255dfd24b4a7f9a412e26b38c Mon Sep 17 00:00:00 2001 From: Glomberg Date: Mon, 12 Oct 2026 18:54:30 +0300 Subject: [PATCH 1/3] Fix. Comments checker. Feedback success message fixed. --- inc/cleantalk-admin.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/inc/cleantalk-admin.php b/inc/cleantalk-admin.php index ad98a6cbb..49aaed1f5 100644 --- a/inc/cleantalk-admin.php +++ b/inc/cleantalk-admin.php @@ -657,12 +657,10 @@ function apbct_admin__enqueue_scripts($hook) 'spambutton_text' => __("Find spam comments", 'cleantalk-spam-protect'), 'ct_feedback_msg_whitelisted' => __("The sender has been whitelisted.", 'cleantalk-spam-protect'), 'ct_feedback_msg_blacklisted' => __("The sender has been blacklisted.", 'cleantalk-spam-protect'), - 'ct_feedback_msg' => sprintf( - __("Feedback has been sent to %sCleanTalk Dashboard%s.", 'cleantalk-spam-protect'), - $apbct->user_token ? "" : '', - $apbct->user_token ? "" : '' - ) . ' ' . esc_html__('The service accepts feedback only for requests made no more than 7 or 45 days - (if the Extra package is activated) ago.', 'cleantalk-spam-protect'), + 'ct_feedback_msg' => + __("Feedback has been sent to CleanTalk Dashboard.", 'cleantalk-spam-protect') + . ' ' + . esc_html__('The service accepts feedback only for requests made no more than 7 or 45 days (if the Extra package is activated) ago.', 'cleantalk-spam-protect'), 'ct_show_check_links' => (bool)$apbct->settings['comments__show_check_links'], 'ct_img_src_new_tab' => plugin_dir_url(__FILE__) . "images/new_window.gif", )); From 0e784b14acfdeb2c3911db925f548a214f89ab2d Mon Sep 17 00:00:00 2001 From: Glomberg Date: Mon, 12 Oct 2026 19:03:40 +0300 Subject: [PATCH 2/3] Dev. Code. Unused variable removed. --- inc/cleantalk-admin.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/inc/cleantalk-admin.php b/inc/cleantalk-admin.php index 49aaed1f5..a1a9636c5 100644 --- a/inc/cleantalk-admin.php +++ b/inc/cleantalk-admin.php @@ -644,14 +644,6 @@ function apbct_admin__enqueue_scripts($hook) \Cleantalk\ApbctWP\CleantalkRealPerson::getLocalizingData() ); ApbctEnqueue::getInstance()->js('cleantalk-comments-editscreen.js', array('cleantalk-admin-js')); - $link = LinkConstructor::buildCleanTalkLink( - 'public_comments_page_go_to_cp', - 'my', - array( - 'user_token' => $apbct->user_token, - 'cp_mode' => 'antispam' - ) - ); wp_localize_script('cleantalk-comments-editscreen-js', 'ctCommentsScreen', array( 'ct_ajax_nonce' => $apbct->ajax_service->getAdminNonce(), 'spambutton_text' => __("Find spam comments", 'cleantalk-spam-protect'), From 78ea660c5fe70584376051c299b9ca21bfbf3f6e Mon Sep 17 00:00:00 2001 From: Glomberg Date: Tue, 13 Oct 2026 09:39:24 +0300 Subject: [PATCH 3/3] Fix. Mail notices. Cleantalk link fixed. --- inc/cleantalk-public.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/inc/cleantalk-public.php b/inc/cleantalk-public.php index d141014c2..d3977f077 100644 --- a/inc/cleantalk-public.php +++ b/inc/cleantalk-public.php @@ -775,10 +775,6 @@ function apbct_comment__Wordpress__changeMailNotification($notify_message, $_com __('Activate protection in your Anti-Spam Dashboard: %s.', 'clentalk'), //HANDLE LINK 'https://cleantalk.org/my/?cp_mode=antispam&utm_source=newsletter&utm_medium=email&utm_campaign=wp_spam_comment_passed' - . ($apbct->data['user_token'] - ? '&iser_token=' . $apbct->data['user_token'] - : '' - ) ) . PHP_EOL . '---' . PHP_EOL