| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | { |
| 32 | 32 | $state->populate($state_data); |
| 33 | 33 | |
| 34 | 34 | if (!$state->validate($config['id'])) { |
| 35 | - throw new \Exception("Exporter session has changed"); | |
| 35 | + throw new \Exception(__("Exporter session has changed", 'jc-importer')); | |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $section = 'export'; |
| 39 | 39 | |
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | // Get increase index, locking record, and saving to user importer state |
| 57 | 57 | $state_data['progress'][$section]['current_row']++; |
| 58 | - update_site_option('iwp_exporter_state_' . $id . '_' . $user, array_merge($state_data, ['last_modified' => current_time('timestamp')])); | |
| 58 | + update_option('iwp_exporter_state_' . $id . '_' . $user, array_merge($state_data, ['last_modified' => current_time('timestamp')])); | |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | $state_data['duration'] = floatval($state_data['duration'] ?? 0) + Logger::timer(); |
| 62 | 62 | |