Skip to content

Commit

Permalink
Add compatibility with WordPress Recovery Mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Oct 19, 2024
1 parent e70954b commit ff8abc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ Instructions for popular native integrations are below:
== Changelog ==

= 4.7.0 =
* Added compatibility with WordPress Recovery Mode.

= 4.6.0 =
* Added support for Simple Membership Login, Register and Lost Password forms.
Expand Down
2 changes: 1 addition & 1 deletion src/php/Abstracts/LoginBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function add_captcha(): void {
protected function is_wp_login_form(): bool {
return (
did_action( 'login_init' ) &&
did_action( 'login_form_login' ) &&
( did_action( 'login_form_login' ) || did_action( 'login_form_entered_recovery_mode' ) ) &&
HCaptcha::did_filter( 'login_link_separator' )
);
}
Expand Down

0 comments on commit ff8abc9

Please sign in to comment.