PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.15.2
Import WP – CSV & XML Import Export for WordPress v2.15.2
2.15.2 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 All 145 releases
← All changes | class/Common/Model/ImporterModel.php +7 -1 2.14.24 → 2.15.2 View file →
@@ -345,9 +345,9 @@
345 345 public function getAllowedFileTypes()
346 346 {
347 347
348 348 $parser = $this->getParser();
349 - $allowed_file_types = apply_filters('iwp/importer/datasource/allowed_file_types', ['xml', 'csv'], $this);
349 + $allowed_file_types = apply_filters('iwp/importer/datasource/allowed_file_types', ['xml', 'csv', 'json'], $this);
350 350
351 351 if (!is_null($parser)) {
352 352 $allowed_file_types = [$parser];
353 353 }
@@ -388,8 +388,14 @@
388 388 public function getDetaultFileSettings()
389 389 {
390 390 switch ($this->getParser()) {
391 391 case 'xml':
392 + return [
393 + 'base_path' => null,
394 + 'setup' => false
395 + ];
396 + break;
397 + case 'json':
392 398 return [
393 399 'base_path' => null,
394 400 'setup' => false
395 401 ];