From 6c1a7aec0551c7d79947aaa93a8438aad4f7481b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Wed, 23 May 2018 15:32:19 +0200 Subject: [PATCH] On plugin deactivate, change update_option to delete_option --- includes/deactivate.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/includes/deactivate.php b/includes/deactivate.php index 4cfab4f..b6137ce 100644 --- a/includes/deactivate.php +++ b/includes/deactivate.php @@ -9,14 +9,6 @@ function fbr_deactivate_plugin(){ $fbr_opts = get_option( 'fbr_opts' ); if( $fbr_opts ){ - $opts = [ - 'fbr_app_id' => null, - 'fbr_app_secret' => null, - 'fbr_page_id' => null, - 'fbr_page_access_token' => null, - 'fbr_ratings' => array(), - ]; - - update_option( 'fbr_opts', $fbr_opts ); + delete_option( 'fbr_opts' ); } } \ No newline at end of file