Fix lost password callback

This commit is contained in:
Cooper Dalrymple
2026-06-18 12:32:56 -05:00
parent 2165224454
commit 20b812e91b
+2 -2
View File
@@ -4,7 +4,7 @@
* @author cleverogre
* @copyright 2026 CleverOgre
* @license GLP-3.0-or-later
* @version 1.2.0
* @version 1.2.3
* @since 1.0.0
*/
@@ -35,7 +35,7 @@ final class LostPasswordForm extends LoginLocation {
{
parent::activate();
add_action('lostpassword_form', [$this, 'render']);
add_action('lostpassword_post', [$this, 'process_form']);
add_action('lostpassword_post', [$this, 'process_form'], 10, 2);
}
public function process_form(WP_Error $errors, WP_User|bool $user_data):void {