From f64557ac2d583914fb71a87cd259fa5869d238e5 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sun, 19 Jan 2025 19:34:48 +0500 Subject: [PATCH] Fix. Bot detector. Paths to script fixed. --- cleantalk.php | 2 +- inc/cleantalk-public.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cleantalk.php b/cleantalk.php index 321467091..df4bc8877 100644 --- a/cleantalk.php +++ b/cleantalk.php @@ -587,7 +587,7 @@ function apbct_write_js_errors($data) . APBCT_URL_PATH . '/js/apbct-public-bundle.min.js' . '?ver=' . APBCT_VERSION . '" id="ct_public_functions-js">'; - echo ''; }, 100); } diff --git a/inc/cleantalk-public.php b/inc/cleantalk-public.php index 9b9ff18a0..fd336708d 100644 --- a/inc/cleantalk-public.php +++ b/inc/cleantalk-public.php @@ -1323,7 +1323,7 @@ function apbct_enqueue_and_localize_public_scripts() if ( $apbct->settings['data__bot_detector_enabled'] && ! apbct_bot_detector_scripts_exclusion()) { wp_enqueue_script( 'ct_bot_detector', - '/js-bot-detector/ct-bot-detector.min.js', + 'https://moderate.cleantalk.org/ct-bot-detector-wrapper.js?ver=', [], APBCT_VERSION, array(