Skip to content

Commit 4369880

Browse files
authored
V3.8.1 (#311)
* Fixed activation and deactivation of plugin and themes on the Integrations page. * Fix tests. * Bump up version.
1 parent 7fae9cf commit 4369880

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.tests/php/unit/Settings/IntegrationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static function ( $name ) use ( $plugin_url, $plugin_version ) {
339339
->with(
340340
Integrations::HANDLE,
341341
$plugin_url . "/assets/js/integrations$min_prefix.js",
342-
[ 'jquery' ],
342+
[ 'jquery', Integrations::DIALOG_HANDLE ],
343343
$plugin_version,
344344
true
345345
)

assets/js/kagg-dialog.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// noinspection ES6ConvertVarToLetConst
22

33
// eslint-disable-next-line no-var
4-
var kaggDialog = window.kaggDialog || ( function( document ) {
4+
const kaggDialog = window.kaggDialog || ( function( document ) {
55
return {
66
defaults: {
77
title: 'Do you want to continue?',
@@ -141,4 +141,6 @@ var kaggDialog = window.kaggDialog || ( function( document ) {
141141
};
142142
}( document ) );
143143

144+
window.kaggDialog = kaggDialog;
145+
144146
kaggDialog.init();

hcaptcha.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: hCaptcha for WordPress
1111
* Plugin URI: https://www.hcaptcha.com/
1212
* Description: hCaptcha keeps out bots and spam while putting privacy first. It is a drop-in replacement for reCAPTCHA.
13-
* Version: 3.8.0
13+
* Version: 3.8.1
1414
* Requires at least: 5.0
1515
* Requires PHP: 7.0
1616
* Author: hCaptcha
@@ -39,7 +39,7 @@
3939
/**
4040
* Plugin version.
4141
*/
42-
const HCAPTCHA_VERSION = '3.8.0';
42+
const HCAPTCHA_VERSION = '3.8.1';
4343

4444
/**
4545
* Path to the plugin dir.

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: captcha, hcaptcha, recaptcha, spam, abuse
44
Requires at least: 5.0
55
Tested up to: 6.4
66
Requires PHP: 7.0.0
7-
Stable tag: 3.8.0
7+
Stable tag: 3.8.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -540,6 +540,9 @@ Instructions for popular native integrations are below:
540540

541541
== Changelog ==
542542

543+
= 3.8.1 =
544+
* Fixed activation and deactivation of plugin and themes on the Integrations page.
545+
543546
= 3.8.0 =
544547
* Added search of plugin and themes on the Integrations page.
545548
* Added toggling of sections on the General page.

src/php/Settings/Integrations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ public function admin_enqueue_scripts() {
659659
wp_enqueue_script(
660660
self::HANDLE,
661661
constant( 'HCAPTCHA_URL' ) . "/assets/js/integrations$this->min_prefix.js",
662-
[ 'jquery' ],
662+
[ 'jquery', self::DIALOG_HANDLE ],
663663
constant( 'HCAPTCHA_VERSION' ),
664664
true
665665
);

0 commit comments

Comments
 (0)