| @@ -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); |