Skip to content

Commit b45c420

Browse files
kagg-designhCaptcha GHAe271828-
authored
V4.13.0 (#403)
* Fix enqueuing hCaptcha scripts on every page when Fluent Forms integration is on. * Update changelog from readme.txt * Bump up to 4.13.0-RC1. * Fix warning in AutoVerify. * Update changelog from readme.txt * Bump up to 4.13.0-RC2. * Fix enqueuing script with fluent conversational. * Update changelog from readme.txt * Fix showing hCaptcha after Fluent Forms update. * Update changelog from readme.txt * Fix Conversational forms support after Fluent Forms update. * Update changelog from readme.txt * Bump up to 4.13.0-RC3. * Update readme.txt. * Update readme.txt. * Add compatibility with Formidable Forms Pro. * Update changelog from readme.txt * Bump up to 4.13.0-RC4. * Add support for Avada multistep forms. * Update changelog from readme.txt * Add support for Password Protected plugin. * Update changelog from readme.txt * Add support for Password Protected plugin. * Bump up to 4.13.0-RC5. * Fix unit tests. * Update readme.txt. * ProtectContent - frontend. * Fix host url in hcap_check_site_config(). * ProtectContent - backend. * ProtectContent - backend. * ProtectContent - settings. * ProtectContent - fix tests. * ProtectContent - sync auto mode with OS. * Update changelog from readme.txt * ProtectContent - fix tests. * ProtectContent - add screencast and update readme.txt. * ProtectContent - add screencast and update readme.txt. * ProtectContent - add screencast and update readme.txt. * Add screencast for 99.9% passive mode. * Update readme.txt. * Update changelog from readme.txt * Add 'Remove Data on Uninstall' option. * Update changelog from readme.txt * Add 'Remove Data on Uninstall' option. * Fix uninstall test. * Tested with WP 6.8, WC 9.8. * Update changelog from readme.txt * Code style in Migrations.php. * What's New feature. * Update changelog from readme.txt * Update readme.txt. * Update changelog from readme.txt * Fix tests. * Fix highlighting of an admin element when its section was closed. * Add a footer link for What's New. * Fix glitch with What's New background filter on forced show. * Update readme.txt. * Update changelog from readme.txt * What's New - add badge and fix message layout. * Code style. * Add "No Captcha" News Section. * Show 'What's New' images in a modal window. * Show some Notification images in a modal window. * Fix tests. * Fix race condition when highlighting admin elements. * Update changelog from readme.txt * Make abstract NotificationsBase class. * Do not close What's New popup on button click. * Added Events Manager integration. * Update changelog from readme.txt * Fix tests. * Bump up to 4.13.0-RC6. * Restore 100% coverage in Fluent Forms. * Cover Password Protected 100%. * Cover Password Protected 100%. * Cover Protect Content 100%. * Cover Protect Content 100%. * Fix tests cross-dependency. * Fix Elementor test. * Fix inconsistency in get_hcap_form test method. * Cover What's New 100%. * Fix inconsistency in get_hcap_form test method. * Cover What's New 100%. * Fix tests dependency when running the whole set. * Bump up to 4.13.0. * Apply suggestions from code review --------- Co-authored-by: hCaptcha GHA <[email protected]> Co-authored-by: e271828- <[email protected]>
1 parent f9fe0b9 commit b45c420

Some content is hidden

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

67 files changed

+3813
-221
lines changed

.tests/php/integration/AAAMainTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace HCaptcha\Tests\Integration;
1515

1616
use HCaptcha\Admin\Privacy;
17+
use HCaptcha\Admin\WhatsNew;
1718
use HCaptcha\AutoVerify\AutoVerify;
1819
use HCaptcha\BBPress\NewTopic;
1920
use HCaptcha\BBPress\Reply;
@@ -574,6 +575,15 @@ static function ( $name ) {
574575
border: 1px solid #f5f5f5;
575576
}
576577
578+
@media (prefers-color-scheme: dark) {
579+
.h-captcha[data-theme="auto"]::before {
580+
background-image: url( http://test.test/wp-content/plugins/hcaptcha-wordpress-plugin/assets/images/hcaptcha-div-logo-white.svg );
581+
background-repeat: no-repeat;
582+
background-color: #333;
583+
border: 1px solid #f5f5f5;
584+
}
585+
}
586+
577587
.h-captcha[data-theme="custom"]::before {
578588
background-color: $bg;
579589
}
@@ -1191,6 +1201,7 @@ static function () use ( &$activate ) {
11911201
PluginStats::class,
11921202
Events::class,
11931203
Privacy::class,
1204+
WhatsNew::class,
11941205
];
11951206
$loaded_classes = $this->get_protected_property( $subject, 'loaded_classes' );
11961207

.tests/php/integration/Admin/NotificationsTest.php

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,18 @@ public function test_get_notifications( bool $empty_keys, bool $pro, bool $force
172172
'title' => 'Friction-free “No CAPTCHA” & 99.9% passive modes',
173173
'message' => '<a href="https://dashboard.hcaptcha.com/?r=wp&utm_source=wordpress&utm_medium=wpplugin&utm_campaign=not" target="_blank">Upgrade to Pro</a> and use <a href="http://test.test/wp-admin/options-general.php?page=hcaptcha&tab=general#size" target="_blank">Invisible Size</a>. The hCaptcha widget will not appear, and the Challenge popup will be shown only to bots.',
174174
'button' => [
175-
'url' => 'http://test.test/wp-content/plugins/hcaptcha-wordpress-plugin/assets/images/elementor-edit-form.png',
176-
'text' => 'See an example',
175+
'url' => 'http://test.test/wp-content/plugins/hcaptcha-wordpress-plugin/assets/images/passive-mode-example.gif',
176+
'text' => 'See an example',
177+
'lightbox' => true,
178+
],
179+
],
180+
'protect-content' => [
181+
'title' => 'Protect Site Content',
182+
'message' => '<a href="http://test.test/wp-admin/options-general.php?page=hcaptcha&tab=general#protect_content_1" target="_blank">Protect</a> selected site URLs from bots with hCaptcha. Works best with <a href="https://dashboard.hcaptcha.com/?r=wp&utm_source=wordpress&utm_medium=wpplugin&utm_campaign=not" target="_blank">Pro</a> 99.9% passive mode.',
183+
'button' => [
184+
'url' => 'http://test.test/wp-content/plugins/hcaptcha-wordpress-plugin/assets/images/protect-content-example.gif',
185+
'text' => 'See an example',
186+
'lightbox' => true,
177187
],
178188
],
179189
];
@@ -295,7 +305,7 @@ class="hcaptcha-notification notice notice-info is-dismissible inline"
295305
target="_blank">here</a> to get your site and secret keys.</p>
296306
<div class="hcaptcha-notification-buttons hidden">
297307
<a href="https://www.hcaptcha.com/signup-interstitial/?r=wp&#038;utm_source=wordpress&#038;utm_medium=wpplugin&#038;utm_campaign=sk"
298-
class="button button-primary" target="_blank">
308+
class="button button-primary " target="_blank">
299309
Get site keys </a>
300310
</div>
301311
</div>
@@ -312,7 +322,7 @@ class="hcaptcha-notification notice notice-info is-dismissible inline"
312322
target="_blank">Start a free trial in your dashboard</a>, no credit card required.</p>
313323
<div class="hcaptcha-notification-buttons hidden">
314324
<a href="https://www.hcaptcha.com/pro/?r=wp&#038;utm_source=wordpress&#038;utm_medium=wpplugin&#038;utm_campaign=not"
315-
class="button button-primary" target="_blank">
325+
class="button button-primary " target="_blank">
316326
Try Pro </a>
317327
</div>
318328
</div>
@@ -325,7 +335,7 @@ class="hcaptcha-notification notice notice-info is-dismissible inline"
325335
<p>hCaptcha Named a Technology Leader in Bot Management: 2023 SPARK Matrix™</p>
326336
<div class="hcaptcha-notification-buttons hidden">
327337
<a href="https://www.hcaptcha.com/post/hcaptcha-named-a-technology-leader-in-bot-management/?r=wp&#038;utm_source=wordpress&#038;utm_medium=wpplugin&#038;utm_campaign=not"
328-
class="button button-primary" target="_blank">
338+
class="button button-primary " target="_blank">
329339
Read post </a>
330340
</div>
331341
</div>
@@ -413,7 +423,7 @@ class="hcaptcha-notification notice notice-info is-dismissible inline"
413423
target="_blank">Start a free trial in your dashboard</a>, no credit card required.</p>
414424
<div class="hcaptcha-notification-buttons hidden">
415425
<a href="https://www.hcaptcha.com/pro/?r=wp&#038;utm_source=wordpress&#038;utm_medium=wpplugin&#038;utm_campaign=not"
416-
class="button button-primary" target="_blank">
426+
class="button button-primary " target="_blank">
417427
Try Pro </a>
418428
</div>
419429
</div>

0 commit comments

Comments
 (0)