Skip to content

Commit

Permalink
1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Oct 16, 2024
1 parent 26d2896 commit 4faf066
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions altcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
* 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.9.2
* Stable tag: 1.9.2
* Version: 1.9.3
* Stable tag: 1.9.3
* Requires at least: 5.0
* Requires PHP: 7.3
* Tested up to: 6.6
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

define('ALTCHA_VERSION', '1.9.2');
define('ALTCHA_VERSION', '1.9.3');
define('ALTCHA_WEBSITE', 'https://altcha.org/');
define('ALTCHA_WIDGET_VERSION', '1.0.0');
define('ALTCHA_LANGUAGES', [
Expand Down
4 changes: 3 additions & 1 deletion includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,5 +555,7 @@ function () {

function altcha_generate_challenge_endpoint()
{
return new WP_REST_Response(AltchaPlugin::$instance->generate_challenge());
$resp = new WP_REST_Response(AltchaPlugin::$instance->generate_challenge());
$resp->set_headers(array('Cache-Control' => 'no-cache, no-store, max-age=0'));
return $resp;
}
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.9.2
Stable tag: 1.9.2
Version: 1.9.3
Stable tag: 1.9.3
Requires at least: 5.0
Requires PHP: 7.3
Tested up to: 6.6
Expand Down Expand Up @@ -94,6 +94,9 @@ All source code for the plugin, and the ALTCHA widget is available on GitHub. In

== Changelog ==

= 1.9.3 =
* Fix REST API Cache-Control header

= 1.9.2 =
* Enable Custom HTML (shortcode) integration by default when activated

Expand Down

0 comments on commit 4faf066

Please sign in to comment.