diff --git a/wp-login.php b/wp-login.php index 559287f774..e1fa23b526 100644 --- a/wp-login.php +++ b/wp-login.php @@ -129,7 +129,7 @@ function retrieve_password() { do_action('retreive_password', $user_login); // Misspelled and deprecated do_action('retrieve_password', $user_login); - $allow = apply_filters('allow_password_reset', true, $user_data->id); + $allow = apply_filters('allow_password_reset', true, $user_data->ID); if ( ! $allow ) return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));