PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.1.1
Fluent Support – Helpdesk & Customer Support Ticket System v2.1.1
2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 68 releases
← All changes | boot/app.php +0 -13 2.3.22.1.1 View file →
@@ -46,21 +46,8 @@
46 46 if (!wp_next_scheduled('fluent_support_weekly_tasks')) {
47 47 wp_schedule_event(time(), 'weekly', 'fluent_support_weekly_tasks');
48 48 }
49 49
50 - global $wpdb;
51 - $table = esc_sql($wpdb->prefix . 'fs_tickets');
52 - // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- $table is sanitized via esc_sql(); no user input.
53 - $column_exists = $wpdb->get_var("SHOW COLUMNS FROM `{$table}` LIKE 'serial_number'");
54 - if ($column_exists) {
55 - // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
56 - $has_null = $wpdb->get_var("SELECT id FROM `{$table}` WHERE `serial_number` IS NULL LIMIT 1");
57 - if ($has_null) {
58 - // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
59 - $wpdb->query("UPDATE `{$table}` SET `serial_number` = `id` WHERE `serial_number` IS NULL");
60 - }
61 - }
62 -
63 50 /*
64 51 * The below schedule is powered by Action Scheduler by WooCommerce
65 52 * It will run every 30 minutes.
66 53 */