PluginProbe
WebTotem Security / 2.4.31
WebTotem Security v2.4.31
3.0.2 3.0.1 3.0.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.1 2.2.2 2.2.3 All 110 releases
← All changes | lib/DB.php +0 -15 3.0.22.4.31 View file →
@@ -75,14 +75,8 @@
75 75 )
76 76 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
77 77
78 78 dbDelta($sql);
79 - } else {
80 - $current_collation = $wpdb->get_var("SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '$audit_logs_table'");
81 -
82 - if ($current_collation != 'utf8_general_ci') {
83 - $wpdb->query("ALTER TABLE $audit_logs_table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci ");
84 - }
85 79 }
86 80
87 81 $scan_logs_table = self::add_prefix(self::WTOTEM_TABLE_SCAN_LOGS);
88 82 if ($wpdb->get_var("show tables like '$scan_logs_table'") != $scan_logs_table) {
@@ -356,17 +350,8 @@
356 350 foreach ($tables as $table) {
357 351 global $wpdb;
358 352 $wpdb->query('DROP TABLE IF EXISTS `' . self::add_prefix($table) . '`');
359 353 }
360 - }
361 -
362 - /**
363 - * Deleting wtotem tables.
364 - */
365 - public static function clearSettings()
366 - {
367 - global $wpdb;
368 - $wpdb->query('TRUNCATE TABLE `' . self::add_prefix(self::WTOTEM_TABLE_SETTINGS) . '`');
369 354 }
370 355
371 356 /**
372 357 * Returns the table with the site prefix added.