From f4d463dcfcad1f3d27133d515ccc8f4800ef2cd2 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Wed, 18 Sep 2024 13:04:49 +0300 Subject: [PATCH] Pull in key name copies when no access otherwise --- providers/class-two-factor-fido-u2f.php | 2 +- providers/class-two-factor-provider.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/providers/class-two-factor-fido-u2f.php b/providers/class-two-factor-fido-u2f.php index d5ea9a8b..f24e55e2 100644 --- a/providers/class-two-factor-fido-u2f.php +++ b/providers/class-two-factor-fido-u2f.php @@ -398,7 +398,7 @@ public static function uninstall_user_meta_keys() { return array( self::REGISTERED_KEY_USER_META_KEY, self::AUTH_DATA_USER_META_KEY, - Two_Factor_FIDO_U2F_Admin::REGISTER_DATA_USER_META_KEY, + '_two_factor_fido_u2f_register_request', // From Two_Factor_FIDO_U2F_Admin which is not loaded during uninstall. ); } } diff --git a/providers/class-two-factor-provider.php b/providers/class-two-factor-provider.php index 68610c69..0e82dd67 100644 --- a/providers/class-two-factor-provider.php +++ b/providers/class-two-factor-provider.php @@ -178,6 +178,8 @@ public static function uninstall_user_meta_keys() { /** * Return the option keys that need to be deleted on plugin uninstall. * + * Note: this method doesn't have access to the instantiated provider object. + * * @return array */ public static function uninstall_options() {