Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions inc/cleantalk-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,25 +644,15 @@ 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'),
'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 ? "<a target='_blank' href='$link'>" : '',
$apbct->user_token ? "</a>" : ''
) . ' ' . 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",
));
Expand Down
4 changes: 0 additions & 4 deletions inc/cleantalk-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading