From 7ebbeb2eaf52a55e9c4d254a5211f314ac002ea1 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Sat, 29 Aug 2015 14:29:57 -0400 Subject: [PATCH] Fix uninstall hook for options --- content-warning-v3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content-warning-v3.php b/content-warning-v3.php index 6b5ebf1..23e761b 100644 --- a/content-warning-v3.php +++ b/content-warning-v3.php @@ -18,7 +18,7 @@ if ( is_admin() ) { require_once dirname( __FILE__ ) . '/class/admin.class.php'; $cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data ); - register_uninstall_hook( __FILE__, $cwv3_options->uninstall() ); + register_uninstall_hook( __FILE__, array( $cwv3_options, 'uninstall' ) ); } else { require_once dirname( __FILE__ ) . '/class/main.class.php'; }