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

Commit 3a9d8a6

Browse files
committed
1.19.0
1 parent 3ab3355 commit 3a9d8a6

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

altcha.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
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.18.0
11-
* Stable tag: 1.18.0
10+
* Version: 1.19.0
11+
* Stable tag: 1.19.0
1212
* Requires at least: 5.0
1313
* Requires PHP: 7.3
1414
* Tested up to: 6.6
1515
* License: GPLv2 or later
1616
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
1717
*/
1818

19-
define('ALTCHA_VERSION', '1.17.0');
19+
define('ALTCHA_VERSION', '1.19.0');
2020
define('ALTCHA_WEBSITE', 'https://altcha.org/');
2121
define('ALTCHA_WIDGET_VERSION', '1.2.0');
2222

public/script.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
requestAnimationFrame(() => {
44
[...document.querySelectorAll('altcha-widget')].forEach((el) => {
55
// add the name attr to fix input validation exception
6-
el.querySelector('input[type="checkbox"]')?.setAttribute('name', '');
6+
const checkbox = el.querySelector('input[type="checkbox"]')
7+
checkbox?.setAttribute('name', '');
78
const form = el.closest('form');
8-
if (form) {
9+
if (form && checkbox) {
910
form.addEventListener('submit', (ev) => {
10-
if (!form.reportValidity()) {
11+
if (!checkbox.reportValidity()) {
1112
ev.preventDefault();
1213
ev.stopPropagation();
1314
}

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.18.0
6-
Stable tag: 1.18.0
5+
Version: 1.19.0
6+
Stable tag: 1.19.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.19.0 =
101+
* Fix submit issues with Contact Form 7 + Conditional fields
102+
100103
= 1.18.0 =
101104
* Fix language with Contact Form 7
102105

0 commit comments

Comments
 (0)