Skip to content

Commit c09e4d1

Browse files
kagg-designhCaptcha GHA
and
hCaptcha GHA
authored
V4.14.0 (#406)
* Bump up to 4.14.0-RC1. * Update changelog from readme.txt * Block CF7 reCaptcha when CF7 hCaptcha module is active. * Update readme.txt. * Update changelog from readme.txt * Fix bug with displaying of What's New popup. * Block CF7 reCaptcha when CF7 hCaptcha module is active. * Fix typo. * Micro optimization in CF7. * Update js packages. * Update php packages. * Micro optimization in CF7. * Update changelog from readme.txt * Fixed fatal error with wpDiscuz update. * Fix unit tests. * Fix unit tests. * Fix NF tests as NF requires PHP 7.4 now. * Fix tests as NF requires PHP 7.4 now. * Improve wpDiscuz data checks. * ImproveAdd escaping to the Elementor hCaptcha field. * Fix typo. * Code style in ErrorHandler.php. * Code style in ErrorHandler.php. * Update js packages. * Simplify admin-elementor-pro.js. * Simplify admin-elementor-pro.js. * Move remove_action_regex() to a separate class. * Move flatten/unflatten to Utils class. * Block native integration. * Simplify HCaptchaHandler. * Unify native and plugin code for Elementor. * Fix Elementor tests. * phpcs. * Replace the Elementor native settings section. * Cover Utils and ElementorHandler 100% by tests. * Reduce cyclomatic complexity in HCaptcha class. * Reduce cyclomatic complexity in SystemInfoTest class. * Reduce cyclomatic complexity in Notifications class. * Reduce cyclomatic complexity in AutoVerify class. * Reduce cyclomatic complexity in AutoVerify class. * Reduce cyclomatic complexity in Gravity Forms class. * Reduce cyclomatic complexity in request functions. * Reduce cyclomatic complexity in General class. * Reduce cyclomatic complexity in SystemInfo class. * Fix jest. * Add compatibility with ActivityPub plugin. * Update changelog from readme.txt * Bump up to 4.14-RC2. * Code style in Elementor Pro. * Add Ultimate Addons for Elementor integration. * Update changelog from readme.txt * Add Ultimate Addons for Elementor integration. * Fix tests. * Fix AUE in invisible and forced mode. * Fix UAE in invisible and forced mode. * Add support for hCaptcha in registration forms and enhance login form integration. * Update readme.txt. * Fix tests. * Bump version to 4.14.0-RC3. * Add translation on the General page. * Code style. * Add validation of IP addresses on the General page. * Update changelog from readme.txt * Fix tests. * Add denylisted IP addresses on the General page. * Update changelog from readme.txt * Fix tests. * Bump up to 4.14.0. --------- Co-authored-by: hCaptcha GHA <gha@hcaptcha.com>
1 parent b45c420 commit c09e4d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3225
-1665
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ jobs:
9797

9898
- name: Install plugins
9999
working-directory: ${{ env.wp-directory }}
100-
run: wp plugin install bbpress buddypress ultimate-member wpforms-lite wpforo ninja-forms
100+
run: wp plugin install bbpress buddypress ultimate-member wpforms-lite wpforo
101101

102102
- name: Install plugins requiring 7.4
103103
if: ${{ matrix.php-version >= '7.4' }}
104104
working-directory: ${{ env.wp-directory }}
105-
run: wp plugin install contact-form-7 woocommerce
105+
run: wp plugin install contact-form-7 ninja-forms woocommerce
106106

107107
- name: Run WP tests
108108
working-directory: ${{ env.wp-plugin-directory }}

.tests/js/assets-js-files/admin-elementor-pro.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe( 'hCaptcha Elementor', () => {
3535

3636
hCaptchaElementorInstance.onInit();
3737

38-
expect( hooks.addFilter ).toHaveBeenCalledTimes( 2 );
38+
expect( hooks.addFilter ).toHaveBeenCalledTimes( 1 );
3939

4040
const renderedField = hCaptchaElementorInstance.renderField( '', item );
4141

.tests/php/integration/AAAMainTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ public function dp_test_allowlist_ip(): array {
11381138
'some ips, not matching ip' => [ " 4444444.777.2 \r\n 220.45.45.1 \r\n", '220.45.45.2', false ],
11391139
'some ips, matching ip' => [ " 4444444.777.2 \r\n 220.45.45.1 \r\n", '220.45.45.1', true ],
11401140
'some ips, matching wrong ip' => [ " 4444444.777.2 \r\n 220.45.45.1 \r\n", '4444444.777.2', false ],
1141-
'with local, local ip' => [ " 4444444.777.2 \r\n 220.45.45.1 \r\n127.0.0.1\r\n", false, true ],
1141+
'with local, local ip' => [ " 4444444.777.2 \r\n 220.45.45.1 \r\n127.0.0.1\r\n", '127.0.0.1', true ],
11421142
];
11431143
}
11441144

.tests/php/integration/AutoVerify/AutoVerifyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,9 @@ private function get_test_registered_forms(): array {
413413
$request_uri = $this->get_test_request_uri();
414414
$request_uri = wp_parse_url( $request_uri, PHP_URL_PATH );
415415
$args = [
416+
'auto' => true,
416417
'action' => 'hcaptcha_action',
417418
'name' => 'hcaptcha_nonce',
418-
'auto' => true,
419419
'ajax' => false,
420420
'force' => false,
421421
'theme' => '',

0 commit comments

Comments
 (0)