From 68597c11350874564d6d94fefee6b3ba48defe31 Mon Sep 17 00:00:00 2001 From: "Luiz \"Bills" Date: Fri, 24 Jun 2022 11:03:47 -0300 Subject: [PATCH] Update uninstall.php --- uninstall.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uninstall.php b/uninstall.php index 71593d2..c9ebbb3 100644 --- a/uninstall.php +++ b/uninstall.php @@ -5,9 +5,7 @@ The constant is NOT defined when uninstall is performed by `register_uninstall_hook`. Reference: https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/#method-2-uninstall-php */ -if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { - exit( 1 ); -} +defined( 'WP_UNINSTALL_PLUGIN' ) || exit( 1 ); // $option_name = 'your_plugin_option'; // delete_option( $option_name );