PluginProbe
Easy Basic Authentication – Add basic auth to site or admin area / 3.0
Easy Basic Authentication – Add basic auth to site or admin area v3.0
trunk 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.7 1.7.1 1.8 1.8.1 1.9 All 50 releases
← All changes | uninstall.php +2 -7 trunk3.0 View file →
@@ -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_%'");