PluginProbe
Stream – Activity Log & Audit Trail / 3.4.2
Stream – Activity Log & Audit Trail v3.4.2
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
← All changes | includes/db-updates.php +18 -2 3.2.23.4.2 View file →
@@ -31,11 +31,27 @@
31 31 foreach ( $stream_entries as $entry ) {
32 32 $class = 'Connector_' . $entry->context;
33 33 if ( class_exists( $class ) ) {
34 34 $connector = new $class();
35 - $wpdb->update( $wpdb->base_prefix . 'stream', array( 'connector' => $connector->name ), array( 'ID' => $entry->ID ) );
35 + $wpdb->update(
36 + $wpdb->base_prefix . 'stream',
37 + array(
38 + 'connector' => $connector->name,
39 + ),
40 + array(
41 + 'ID' => $entry->ID,
42 + )
43 + );
36 44 } else {
37 - $wpdb->update( $wpdb->base_prefix . 'stream', array( 'connector' => strtolower( $entry->connector ) ), array( 'ID' => $entry->ID ) );
45 + $wpdb->update(
46 + $wpdb->base_prefix . 'stream',
47 + array(
48 + 'connector' => strtolower( $entry->connector ),
49 + ),
50 + array(
51 + 'ID' => $entry->ID,
52 + )
53 + );
38 54 }
39 55 }
40 56
41 57 return $current_version;