| @@ -2,12 +2,7 @@ | ||
| 2 | 2 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | -// Check if the user has selected removing all plugin data from the database after uninstalling the plugin - defaults to 0 (false) | |
| 7 | -$remove_data = get_option( 'basic_auth_plugin_remove_data_after_uninstall', '0' ); | |
| 6 | +global $wpdb; | |
| 8 | 7 | |
| 9 | -if ( $remove_data === '1' ) { | |
| 10 | - global $wpdb; | |
| 11 | - | |
| 12 | - $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE 'basic_auth_plugin_%'"); | |
| 13 | -} | |
| 8 | +$wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE 'basic_auth_plugin_%'"); | |