Skip to content

Commit cb67ed2

Browse files
committed
Fix weird cron bug in tests with WP 6.9.
1 parent 7308d3f commit cb67ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/php/integration/HCaptchaWPTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static function ( $form_fields, $instance ) {
6464
*/
6565
public function tearDown(): void {
6666
// phpcs:ignore WordPress.Security.NonceVerification.Missing
67-
unset( $_POST, $_SERVER['REQUEST_URI'], $_SERVER['HTTP_CLIENT_IP'] );
67+
unset( $_POST, $_SERVER['HTTP_CLIENT_IP'] );
6868

6969
delete_option( 'hcaptcha_settings' );
7070
hcaptcha()->init_hooks();

0 commit comments

Comments
 (0)