Fix missing argument with AIOWPS

This commit is contained in:
Cooper Dalrymple
2026-07-15 10:21:15 -05:00
parent 3af451a8ff
commit d04eb1a5ba
+3 -4
View File
@@ -4,7 +4,7 @@
* @author cleverogre * @author cleverogre
* @copyright 2026 CleverOgre * @copyright 2026 CleverOgre
* @license GLP-3.0-or-later * @license GLP-3.0-or-later
* @version 1.2.4 * @version 1.2.6
* @since 1.0.0 * @since 1.0.0
*/ */
@@ -14,7 +14,6 @@ use Override;
use Ogre\Captcha\LoginLocation; use Ogre\Captcha\LoginLocation;
use Ogre\Captcha\Settings; use Ogre\Captcha\Settings;
use WP_Error; use WP_Error;
use WP_User;
defined('ABSPATH') || exit; defined('ABSPATH') || exit;
@@ -35,10 +34,10 @@ final class LostPasswordForm extends LoginLocation {
{ {
parent::activate(); parent::activate();
add_action('lostpassword_form', [$this, 'render']); 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); $this->process($errors);
} }