Fix uninstall hook for options

This commit is contained in:
Jay Wood
2015-08-29 14:29:57 -04:00
parent 8ef4fe91eb
commit 7ebbeb2eaf

View File

@ -18,7 +18,7 @@ if ( is_admin() ) {
require_once dirname( __FILE__ ) . '/class/admin.class.php'; require_once dirname( __FILE__ ) . '/class/admin.class.php';
$cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data ); $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 { } else {
require_once dirname( __FILE__ ) . '/class/main.class.php'; require_once dirname( __FILE__ ) . '/class/main.class.php';
} }