Skip to content

Commit

Permalink
Fix deprecation error in PHP 8.1 and above (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs authored Nov 2, 2023
1 parent 5aed2e8 commit 65790e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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.12.1
* Version: 1.12.2
* 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.12.1');
define('FRIENDLY_CAPTCHA_VERSION', '1.12.2');
define('FRIENDLY_CAPTCHA_FRIENDLY_CHALLENGE_VERSION', '0.9.12');
define('FRIENDLY_CAPTCHA_SUPPORTED_LANGUAGES', [
"en" => "English",
Expand Down
2 changes: 1 addition & 1 deletion friendly-captcha/includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function get_global_puzzle_endpoint_active() {
}

// This creates the singleton instance
if ( !defined(FriendlyCaptcha_Plugin::$instance)) {
if ( !isset(FriendlyCaptcha_Plugin::$instance)) {
$frcaptcha_plugin_instance = new FriendlyCaptcha_Plugin();
$frcaptcha_plugin_instance->init();
}
Expand Down
5 changes: 4 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.3
Requires PHP: 7.3
Stable tag: 1.12.1
Stable tag: 1.12.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 1.12.2 =
* Support for PHP 8.1

= 1.12.1 =
* Support widgets that are dynamically added to the page (e.g. popups or multi-step forms)

Expand Down

0 comments on commit 65790e5

Please sign in to comment.