| @@ -1,16 +1,18 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // if uninstall.php is not called by WordPress, die |
| 4 | -if (!defined('WP_UNINSTALL_PLUGIN')) { | |
| 5 | - die; | |
| 4 | +if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { | |
| 5 | + die; | |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | $option_name = 'woocommerce_payplug_settings'; |
| 9 | 9 | |
| 10 | -if (get_option('woocommerce_payplug_settings')) { | |
| 11 | - delete_option($option_name); | |
| 12 | - // for site options in Multisite | |
| 13 | - delete_site_option($option_name); | |
| 10 | +if( get_option('woocommerce_payplug_settings') ){ | |
| 11 | + delete_option( $option_name ); | |
| 12 | + // for site options in Multisite | |
| 13 | + delete_site_option( $option_name ); | |
| 14 | 14 | |
| 15 | - \Payplug\PayplugWoocommerce\Model\Lock::delete_lock_table(); | |
| 15 | + \Payplug\PayplugWoocommerce\Model\Lock::delete_lock_table(); | |
| 16 | + | |
| 16 | 17 | } |
| 18 | + | |