Skip to content

Commit

Permalink
fix early return before mutation observer is injected
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs committed Jun 6, 2024
1 parent cf8e398 commit a20d7ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions friendly-captcha/friendly-captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Plugin Name: Friendly Captcha for WordPress
* Description: Protect WordPress website forms from spam and abuse with Friendly Captcha, a privacy-first anti-bot solution.
* Version: 1.14.2
* Version: 1.14.3
* Requires at least: 5.0
* Requires PHP: 7.3
* Author: Friendly Captcha GmbH
Expand All @@ -19,7 +19,7 @@
die;
}

define('FRIENDLY_CAPTCHA_VERSION', '1.14.2');
define('FRIENDLY_CAPTCHA_VERSION', '1.14.3');
define('FRIENDLY_CAPTCHA_FRIENDLY_CHALLENGE_VERSION', '0.9.12');
define('FRIENDLY_CAPTCHA_FRIENDLY_CAPTCHA_SDK_VERSION', '0.1.7');
define('FRIENDLY_CAPTCHA_SUPPORTED_LANGUAGES', [
Expand Down
4 changes: 2 additions & 2 deletions friendly-captcha/public/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ function frcaptcha_enqueue_widget_scripts($forceMutationObserver = false)
}

if (FriendlyCaptcha_Plugin::$instance->get_enable_v2()) {
return frcaptcha_v2_enqueue_widget_scripts();
frcaptcha_v2_enqueue_widget_scripts();
} else {
return frcaptcha_v1_enqueue_widget_scripts();
frcaptcha_v1_enqueue_widget_scripts();
}

frcaptcha_mutation_observer_scripts($plugin, $forceMutationObserver);
Expand Down
6 changes: 5 additions & 1 deletion friendly-captcha/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: captcha, antispam, spam, contact form, recaptcha, friendly-captcha, block
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.3
Stable tag: 1.14.2
Stable tag: 1.14.3
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -96,6 +96,10 @@ However, you may wish to email the authors of plugins you'd like to support Frie

== Changelog ==

= 1.14.3 =

* Fix dynamic initialization option

= 1.14.2 =

* Add support for multistep form in FluenForm
Expand Down

0 comments on commit a20d7ff

Please sign in to comment.