Skip to content

Commit

Permalink
Fix. Bot detector. Paths to script fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Jan 19, 2025
1 parent 5edc616 commit f64557a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"></script>';
echo '<script src="/js-bot-detector/ct-bot-detector.min.js'
echo '<script src="https://moderate.cleantalk.org/ct-bot-detector-wrapper.js?ver='
. APBCT_VERSION . '" id="ct_bot_detector-js"></script>';
}, 100);
}
Expand Down
2 changes: 1 addition & 1 deletion inc/cleantalk-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f64557a

Please sign in to comment.