PluginProbe
Patchstack – WordPress & Plugins Security / 2.2.7
Patchstack – WordPress & Plugins Security v2.2.7
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/migrations/v301.php +4 -4 2.1.212.2.7 View file →
@@ -11,14 +11,14 @@
11 11 $lastid_firewall = get_option( 'patchstack_firewall_log_lastid', 0 );
12 12 $lastid_event = get_option( 'patchstack_eventlog_lastid', 0 );
13 13
14 14 // Get the current first id.
15 -$first_firewall = $wpdb->get_var( 'SELECT id FROM ' . $wpdb->prefix . 'patchstack_firewall_log ORDER BY id ASC LIMIT 0, 1' );
16 -$first_event = $wpdb->get_var( 'SELECT id FROM ' . $wpdb->prefix . 'patchstack_event_log ORDER BY id ASC LIMIT 0, 1' );
15 +$first_firewall = $wpdb->get_var( 'SELECT id FROM ' . $prefix . 'patchstack_firewall_log ORDER BY id ASC LIMIT 0, 1' );
16 +$first_event = $wpdb->get_var( 'SELECT id FROM ' . $prefix . 'patchstack_event_log ORDER BY id ASC LIMIT 0, 1' );
17 17
18 18 // Get the current last id.
19 -$last_firewall = $wpdb->get_var( 'SELECT id FROM ' . $wpdb->prefix . 'patchstack_firewall_log ORDER BY id DESC LIMIT 0, 1' );
20 -$last_event = $wpdb->get_var( 'SELECT id FROM ' . $wpdb->prefix . 'patchstack_event_log ORDER BY id DESC LIMIT 0, 1' );
19 +$last_firewall = $wpdb->get_var( 'SELECT id FROM ' . $prefix . 'patchstack_firewall_log ORDER BY id DESC LIMIT 0, 1' );
20 +$last_event = $wpdb->get_var( 'SELECT id FROM ' . $prefix . 'patchstack_event_log ORDER BY id DESC LIMIT 0, 1' );
21 21
22 22 // Update the lastid value of the firewall log.
23 23 if ( ! is_null( $first_firewall ) && ! is_null( $last_firewall ) ) {
24 24 if ( (int) $lastid_firewall > (int) $last_firewall ) {