PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.15.0
Import WP – CSV & XML Import Export for WordPress v2.15.0
2.15.1 2.15.0 2.14.24 2.14.23 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.9.0 2.9.1 All 144 releases
← All changes | class/Common/Runner/Runner.php +3 -3 2.8.1 → 2.15.0 View file →
@@ -51,9 +51,9 @@
51 51 $i = 0;
52 52
53 53 $this->try_process_dangling_state($id, $user, $state, $user);
54 54
55 - $config = get_site_option('iwp_' . $this->object_type . '_config_' . $id, []);
55 + $config = get_option('iwp_' . $this->object_type . '_config_' . $id, []);
56 56
57 57 while (
58 58 ($i == 0 || (
59 59 ($time_limit === 0 || $this->has_enough_time($start, $time_limit, $max_record_time))
@@ -107,9 +107,9 @@
107 107
108 108 // TODO: Should the option be renamed to the current user first? to make sure its not ran multiple times.
109 109 // TODO: status should not be overwritten like this.
110 110 $GLOBALS['wp_object_cache']->delete($dangling_id, 'options');
111 - $status = get_site_option($dangling_id);
111 + $status = get_option($dangling_id);
112 112 if ($status && $status['last_modified'] < current_time('timestamp') - 30) {
113 113
114 114 Logger::write('try_import_dangling_rows -id=' . $id . ' -user=' . $user . ' -dangling=' . $dangling_id);
115 115
@@ -114,9 +114,9 @@
114 114 Logger::write('try_import_dangling_rows -id=' . $id . ' -user=' . $user . ' -dangling=' . $dangling_id);
115 115
116 116 $GLOBALS['wp_object_cache']->delete($dangling_id, 'options');
117 117 $status['last_modified'] = current_time('timestamp');
118 - update_site_option($dangling_id, $status);
118 + update_option($dangling_id, $status);
119 119
120 120
121 121 $this->process_row($id, $user, $state, $state->get_session(), $status['section'], $status['progress'][$status['section']]);
122 122 delete_site_option($dangling_id);