diff --git a/inc/location/class-lost-password-form.php b/inc/location/class-lost-password-form.php index 5d5e54b..ffed418 100644 --- a/inc/location/class-lost-password-form.php +++ b/inc/location/class-lost-password-form.php @@ -4,7 +4,7 @@ * @author cleverogre * @copyright 2026 CleverOgre * @license GLP-3.0-or-later - * @version 1.2.4 + * @version 1.2.6 * @since 1.0.0 */ @@ -14,7 +14,6 @@ use Override; use Ogre\Captcha\LoginLocation; use Ogre\Captcha\Settings; use WP_Error; -use WP_User; defined('ABSPATH') || exit; @@ -35,10 +34,10 @@ final class LostPasswordForm extends LoginLocation { { parent::activate(); add_action('lostpassword_form', [$this, 'render']); - add_action('lostpassword_post', [$this, 'process_form'], 10, 2); + add_action('lostpassword_post', [$this, 'process_form'], 10, 1); } - public function process_form(WP_Error $errors, WP_User|bool $user_data):void { + public function process_form(WP_Error $errors):void { $this->process($errors); }