Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 3ab3355

Browse files
committed
1.18.0
1 parent 3dccf90 commit 3ab3355

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

altcha.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* 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.
88
* Author: Altcha.org
99
* Author URI: https://altcha.org
10-
* Version: 1.17.0
11-
* Stable tag: 1.17.0
10+
* Version: 1.18.0
11+
* Stable tag: 1.18.0
1212
* Requires at least: 5.0
1313
* Requires PHP: 7.3
1414
* Tested up to: 6.6

includes/core.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ class AltchaPlugin
66
{
77
public static $instance;
88

9+
public static $language = "";
10+
911
public static $widget_script_src = "";
1012

1113
public static $wp_script_src = "";
@@ -111,6 +113,7 @@ class AltchaPlugin
111113
public function init()
112114
{
113115
AltchaPlugin::$instance = $this;
116+
AltchaPlugin::$language = get_locale();
114117
if (defined('ALTCHA_VERSION')) {
115118
AltchaPlugin::$version = ALTCHA_VERSION;
116119
}

integrations/contact-form-7.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function ($elements) {
1313
if ($mode === "captcha" || $mode === "captcha_spamfilter") {
1414
$input = '<input class="wpcf7-form-control wpcf7-submit ';
1515
$button = '<button class="wpcf7-form-control wpcf7-submit ';
16-
$widget = wp_kses($plugin->render_widget($mode, true), AltchaPlugin::$html_espace_allowed_tags);
16+
$widget = wp_kses($plugin->render_widget($mode, true, AltchaPlugin::$language), AltchaPlugin::$html_espace_allowed_tags);
1717
if (strpos($elements, $input) !== false) {
1818
$elements = str_replace($input, $widget . $input, $elements);
1919
} else if (strpos($elements, $button) !== false) {

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Tags: altcha, captcha, spam, anti-spam, anti-bot, antispam, recaptcha, hcaptcha, gdpr
33
Author: Altcha.org
44
Author URI: https://altcha.org
5-
Version: 1.17.0
6-
Stable tag: 1.17.0
5+
Version: 1.18.0
6+
Stable tag: 1.18.0
77
Requires at least: 5.0
88
Requires PHP: 7.3
99
Tested up to: 6.6
@@ -97,6 +97,9 @@ All source code for the plugin, and the ALTCHA widget is available on GitHub. In
9797

9898
== Changelog ==
9999

100+
= 1.18.0 =
101+
* Fix language with Contact Form 7
102+
100103
= 1.17.0 =
101104
* Update widget to 1.2.0
102105
* Widget removes support for Expires header fixing potential auto-revalidation issues

0 commit comments

Comments
 (0)