From db6fe0ffa165788e765862e00033a2c5d5cc2dc2 Mon Sep 17 00:00:00 2001 From: Daniel Regeci <536331+ovx@users.noreply.github.com> Date: Wed, 11 Sep 2024 07:28:56 -0300 Subject: [PATCH] 1.8.0 --- altcha.php | 8 ++++---- readme.txt | 7 +++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/altcha.php b/altcha.php index 836aaa7..779c9ed 100644 --- a/altcha.php +++ b/altcha.php @@ -7,8 +7,8 @@ * Description: ALTCHA is a free, open-source CAPTCHA alternative that offers robust protection without using cookies, ensuring full GDPR compliance by design. It also provides invisible anti-spam and anti-bot protection through ALTCHA's API. * Author: Altcha.org * Author URI: https://altcha.org - * Version: 1.7.0 - * Stable tag: 1.7.0 + * Version: 1.8.0 + * Stable tag: 1.8.0 * Requires at least: 5.0 * Requires PHP: 7.3 * Tested up to: 6.6 @@ -83,12 +83,12 @@ add_shortcode( 'altcha', function ($attrs) { + $plugin = AltchaPlugin::$instance; $default = array( 'language' => null, - 'mode' => 'captcha', + 'mode' => $plugin->get_integration_custom(), ); $a = shortcode_atts($default, $attrs); - $plugin = AltchaPlugin::$instance; return wp_kses($plugin->render_widget($a['mode'], true, $a['language']), AltchaPlugin::$html_espace_allowed_tags); } ); diff --git a/readme.txt b/readme.txt index 8af18e0..8098a85 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Tags: altcha, captcha, spam, anti-spam, anti-bot, antispam, recaptcha, hcaptcha, gdpr Author: Altcha.org Author URI: https://altcha.org -Version: 1.7.0 -Stable tag: 1.7.0 +Version: 1.8.0 +Stable tag: 1.8.0 Requires at least: 5.0 Requires PHP: 7.3 Tested up to: 6.6 @@ -94,6 +94,9 @@ All source code for the plugin, and the ALTCHA widget is available on GitHub. In == Changelog == += 1.8.0 = +* Shortcode (custom integration) - fix mode (SpamFilter) + = 1.7.0 = * HTML Forms - add Shortcode option