Import any XML or CSV File to WordPress - Version 3.5.8

Version Description

  • bug fix: import of taxonomies hierarchy didn't work properly
Download this release

Release Info

Developer soflyy
Plugin Icon 128x128 Import any XML or CSV File to WordPress
Version 3.5.8
Comparing to
See all releases

Code changes from version 3.5.7 to 3.5.8

Files changed (3) hide show
  1. models/import/record.php +6 -6
  2. plugin.php +2 -2
  3. readme.txt +14 -11
models/import/record.php CHANGED
@@ -417,7 +417,7 @@ class PMXI_Import_Record extends PMXI_Model_Record {
417
  $tx_name = $ctx->name;
418
  $mapping_rules = ( ! empty($this->options['tax_mapping'][$tx_name])) ? json_decode($this->options['tax_mapping'][$tx_name], true) : false;
419
  $taxonomies[$tx_name] = array();
420
- if ( ! empty($this->options['tax_logic'][$tx_name]) and ! empty($this->options['tax_assing'][$tx_name]) ){
421
  switch ($this->options['tax_logic'][$tx_name]){
422
  case 'single':
423
  if ( isset($this->options['tax_single_xpath'][$tx_name]) && $this->options['tax_single_xpath'][$tx_name] !== "" ){
@@ -426,7 +426,7 @@ class PMXI_Import_Record extends PMXI_Model_Record {
426
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
427
  'name' => $tx,
428
  'parent' => false,
429
- 'assign' => (isset($this->options['term_assing'][$tx_name])) ? $this->options['term_assing'][$tx_name] : true,
430
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name])),
431
  'hierarchy_level' => 1,
432
  'max_hierarchy_level' => 1
@@ -456,7 +456,7 @@ class PMXI_Import_Record extends PMXI_Model_Record {
456
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
457
  'name' => $cc,
458
  'parent' => false,
459
- 'assign' => (isset($this->options['multiple_term_assing'][$tx_name])) ? $this->options['multiple_term_assing'][$tx_name] : true,
460
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name]) and empty($this->options['tax_logic_mapping'][$tx_name])),
461
  'hierarchy_level' => 1,
462
  'max_hierarchy_level' => 1
@@ -526,7 +526,7 @@ class PMXI_Import_Record extends PMXI_Model_Record {
526
  $delimeted_taxonomies = array_filter(array_filter(explode( ! empty($this->options['tax_hierarchical_delim'][$tx_name]) ? $this->options['tax_hierarchical_delim'][$tx_name] : ',', $_tx)));
527
  if ( ! empty($delimeted_taxonomies) ){
528
  foreach ($delimeted_taxonomies as $j => $cc) {
529
- $is_assign_term = (isset($this->options['tax_hierarchical_assing'][$tx_name][$k])) ? $this->options['tax_hierarchical_assing'][$tx_name][$k] : true;
530
  if ( ! empty($this->options['tax_hierarchical_last_level_assign'][$tx_name]) ){
531
  $is_assign_term = (count($delimeted_taxonomies) == $j + 1) ? 1 : 0;
532
  }
@@ -587,7 +587,7 @@ class PMXI_Import_Record extends PMXI_Model_Record {
587
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
588
  'name' => trim($dc),
589
  'parent' => $parent,
590
- 'assign' => (isset($taxonomy['assign'])) ? $taxonomy['assign'] : true,
591
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name]) and empty($this->options['tax_logic_mapping'][$tx_name])),
592
  'hierarchy_level' => 1,
593
  'max_hierarchy_level' => 1
@@ -602,7 +602,7 @@ class PMXI_Import_Record extends PMXI_Model_Record {
602
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
603
  'name' => trim($dc),
604
  'parent' => false,
605
- 'assign' => (isset($taxonomy['assign'])) ? $taxonomy['assign'] : true,
606
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name]) and empty($this->options['tax_logic_mapping'][$tx_name])),
607
  'hierarchy_level' => 1,
608
  'max_hierarchy_level' => 1
417
  $tx_name = $ctx->name;
418
  $mapping_rules = ( ! empty($this->options['tax_mapping'][$tx_name])) ? json_decode($this->options['tax_mapping'][$tx_name], true) : false;
419
  $taxonomies[$tx_name] = array();
420
+ if ( ! empty($this->options['tax_logic'][$tx_name]) ) {
421
  switch ($this->options['tax_logic'][$tx_name]){
422
  case 'single':
423
  if ( isset($this->options['tax_single_xpath'][$tx_name]) && $this->options['tax_single_xpath'][$tx_name] !== "" ){
426
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
427
  'name' => $tx,
428
  'parent' => false,
429
+ 'assign' => true,
430
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name])),
431
  'hierarchy_level' => 1,
432
  'max_hierarchy_level' => 1
456
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
457
  'name' => $cc,
458
  'parent' => false,
459
+ 'assign' => true,
460
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name]) and empty($this->options['tax_logic_mapping'][$tx_name])),
461
  'hierarchy_level' => 1,
462
  'max_hierarchy_level' => 1
526
  $delimeted_taxonomies = array_filter(array_filter(explode( ! empty($this->options['tax_hierarchical_delim'][$tx_name]) ? $this->options['tax_hierarchical_delim'][$tx_name] : ',', $_tx)));
527
  if ( ! empty($delimeted_taxonomies) ){
528
  foreach ($delimeted_taxonomies as $j => $cc) {
529
+ $is_assign_term = true;
530
  if ( ! empty($this->options['tax_hierarchical_last_level_assign'][$tx_name]) ){
531
  $is_assign_term = (count($delimeted_taxonomies) == $j + 1) ? 1 : 0;
532
  }
587
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
588
  'name' => trim($dc),
589
  'parent' => $parent,
590
+ 'assign' => true,
591
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name]) and empty($this->options['tax_logic_mapping'][$tx_name])),
592
  'hierarchy_level' => 1,
593
  'max_hierarchy_level' => 1
602
  $taxonomies[$tx_name][$i][] = wp_all_import_ctx_mapping(array(
603
  'name' => trim($dc),
604
  'parent' => false,
605
+ 'assign' => true,
606
  'is_mapping' => (!empty($this->options['tax_enable_mapping'][$tx_name]) and empty($this->options['tax_logic_mapping'][$tx_name])),
607
  'hierarchy_level' => 1,
608
  'max_hierarchy_level' => 1
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP All Import
4
  Plugin URI: http://www.wpallimport.com/wordpress-xml-csv-import/?utm_source=import-plugin-free&utm_medium=wp-plugins-page&utm_campaign=upgrade-to-pro
5
  Description: The most powerful solution for importing XML and CSV files to WordPress. Create Posts and Pages with content from any XML or CSV file. A paid upgrade to WP All Import Pro is available for support and additional features.
6
- Version: 3.5.7
7
  Author: Soflyy
8
  */
9
 
@@ -25,7 +25,7 @@ define('WP_ALL_IMPORT_ROOT_URL', rtrim(plugin_dir_url(__FILE__), '/'));
25
  */
26
  define('WP_ALL_IMPORT_PREFIX', 'pmxi_');
27
 
28
- define('PMXI_VERSION', '3.5.7');
29
 
30
  define('PMXI_EDITION', 'free');
31
 
3
  Plugin Name: WP All Import
4
  Plugin URI: http://www.wpallimport.com/wordpress-xml-csv-import/?utm_source=import-plugin-free&utm_medium=wp-plugins-page&utm_campaign=upgrade-to-pro
5
  Description: The most powerful solution for importing XML and CSV files to WordPress. Create Posts and Pages with content from any XML or CSV file. A paid upgrade to WP All Import Pro is available for support and additional features.
6
+ Version: 3.5.8
7
  Author: Soflyy
8
  */
9
 
25
  */
26
  define('WP_ALL_IMPORT_PREFIX', 'pmxi_');
27
 
28
+ define('PMXI_VERSION', '3.5.8');
29
 
30
  define('PMXI_EDITION', 'free');
31
 
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === Import any XML or CSV File to WordPress ===
2
- Contributors: soflyy, wpallimport
3
  Requires at least: 4.1
4
  Tested up to: 5.7
5
- Stable tag: 3.5.7
6
  Tags: wordpress csv import, wordpress xml import, xml, csv, datafeed, import, migrate, import csv to wordpress, import xml to wordpress, advanced xml import, advanced csv import, bulk csv import, bulk xml import, bulk data import, xml to custom post type, csv to custom post type, woocommerce csv import, woocommerce xml import, csv import, import csv, xml import, import xml, csv importer
7
 
8
  WP All Import is an extremely powerful importer that makes it easy to import any XML or CSV file to WordPress.
@@ -11,7 +11,7 @@ WP All Import is an extremely powerful importer that makes it easy to import any
11
 
12
  = WP All Import - Simple & Powerful XML / CSV Importer Plugin =
13
 
14
- *“It's a wonderful plugin that does so much, so well that it's hard to list all of the features. But I'll tell you this, I was able to import the content of a pair of websites running the ModX CMS into a WordPress install in less than 30 minutes. No joke!”*
15
  **Alex Vasquez** - DigiSavvy Co-Founder & WordCamp Los Angeles Organizer
16
 
17
  WP All Import has a four step import process and an intuitive drag & drop interface that makes complicated import tasks simple and fast.
@@ -86,7 +86,7 @@ Need to [import XML and CSV to WooCommerce?](http://wordpress.org/plugins/woocom
86
  == Frequently Asked Questions ==
87
 
88
  **What Size Files Can WP All Import Handle?**
89
- It depends on your hosting provider’s settings. We’ve imported files of 200Mb and up, even on shared hosts. WP All Import splits your file into manageable chunks.
90
 
91
  [Various settings are available](http://www.wpallimport.com/documentation/advanced/import-processing/?utm_source=import-plugin-free&utm_medium=readme&utm_campaign=upgrade-to-pro) to make it possible to import larger files or speed up your import.
92
 
@@ -105,6 +105,9 @@ Does it work with special character encoding like Hebrew, Arabic, Chinese, etc?
105
 
106
  == Changelog ==
107
 
 
 
 
108
  = 3.5.7 =
109
  * improvement: git rid if deprecated join query on manage imports screen
110
  * improvement: add is_update_post_format option
@@ -151,7 +154,7 @@ Does it work with special character encoding like Hebrew, Arabic, Chinese, etc?
151
 
152
  = 3.4.9 =
153
  * bug fix: import using stream reader
154
- * bug fix: generation temporary files in system temporary folder
155
 
156
  = 3.4.8 =
157
  * improvement: various import speed optimizations
@@ -197,7 +200,7 @@ Does it work with special character encoding like Hebrew, Arabic, Chinese, etc?
197
  = 3.4.4 =
198
  * bug fix: import template not worked when downloaded via Import Settings
199
  * bug fix: updating user login
200
- * bug fix: import images with encoded quotes
201
  * improvement: added hungarian translation
202
 
203
  = 3.4.3 =
@@ -299,7 +302,7 @@ Does it work with special character encoding like Hebrew, Arabic, Chinese, etc?
299
 
300
  = 3.3.0 =
301
  * added new options to taxonomies import 'Try to match terms to existing child Product Categories' & 'Only assign Products to the imported Product Category, not the entire hierarchy'
302
- * added support for Excel files ( .xls, .xlsx )
303
 
304
  = 3.2.9 =
305
  * load ini_set only on plugin pages
@@ -392,7 +395,7 @@ Does it work with special character encoding like Hebrew, Arabic, Chinese, etc?
392
  * Added option to set Post Status with XPath (the value of presented XPath should be one of the following: publish, draft, trash)
393
  * Preview navigation
394
 
395
- = 3.0.4 =
396
  * Fixed import categories;
397
  * Updated UI/UX;
398
  * Added import/export templates feature;
@@ -400,17 +403,17 @@ Does it work with special character encoding like Hebrew, Arabic, Chinese, etc?
400
  * Added option to set post status with XPath;
401
  * Added feeds encoding feature;
402
 
403
- = 3.0.2 =
404
  * Added support for the WooCommerce add-on
405
 
406
- = 3.0 =
407
  * Free edition of 3.0 pro release
408
 
409
  = 2.14 =
410
  * Category list delimiter bug fix
411
 
412
  = 2.13 =
413
- * Tons of bug fixes, updates, and additional features.
414
 
415
 
416
  = 2.12 =
1
  === Import any XML or CSV File to WordPress ===
2
+ Contributors: soflyy, wpallimport
3
  Requires at least: 4.1
4
  Tested up to: 5.7
5
+ Stable tag: 3.5.8
6
  Tags: wordpress csv import, wordpress xml import, xml, csv, datafeed, import, migrate, import csv to wordpress, import xml to wordpress, advanced xml import, advanced csv import, bulk csv import, bulk xml import, bulk data import, xml to custom post type, csv to custom post type, woocommerce csv import, woocommerce xml import, csv import, import csv, xml import, import xml, csv importer
7
 
8
  WP All Import is an extremely powerful importer that makes it easy to import any XML or CSV file to WordPress.
11
 
12
  = WP All Import - Simple & Powerful XML / CSV Importer Plugin =
13
 
14
+ *“It's a wonderful plugin that does so much, so well that it's hard to list all of the features. But I'll tell you this, I was able to import the content of a pair of websites running the ModX CMS into a WordPress install in less than 30 minutes. No joke!”*
15
  **Alex Vasquez** - DigiSavvy Co-Founder & WordCamp Los Angeles Organizer
16
 
17
  WP All Import has a four step import process and an intuitive drag & drop interface that makes complicated import tasks simple and fast.
86
  == Frequently Asked Questions ==
87
 
88
  **What Size Files Can WP All Import Handle?**
89
+ It depends on your hosting provider’s settings. We’ve imported files of 200Mb and up, even on shared hosts. WP All Import splits your file into manageable chunks.
90
 
91
  [Various settings are available](http://www.wpallimport.com/documentation/advanced/import-processing/?utm_source=import-plugin-free&utm_medium=readme&utm_campaign=upgrade-to-pro) to make it possible to import larger files or speed up your import.
92
 
105
 
106
  == Changelog ==
107
 
108
+ = 3.5.8 =
109
+ * bug fix: import of taxonomies hierarchy didn't work properly
110
+
111
  = 3.5.7 =
112
  * improvement: git rid if deprecated join query on manage imports screen
113
  * improvement: add is_update_post_format option
154
 
155
  = 3.4.9 =
156
  * bug fix: import using stream reader
157
+ * bug fix: generation temporary files in system temporary folder
158
 
159
  = 3.4.8 =
160
  * improvement: various import speed optimizations
200
  = 3.4.4 =
201
  * bug fix: import template not worked when downloaded via Import Settings
202
  * bug fix: updating user login
203
+ * bug fix: import images with encoded quotes
204
  * improvement: added hungarian translation
205
 
206
  = 3.4.3 =
302
 
303
  = 3.3.0 =
304
  * added new options to taxonomies import 'Try to match terms to existing child Product Categories' & 'Only assign Products to the imported Product Category, not the entire hierarchy'
305
+ * added support for Excel files ( .xls, .xlsx )
306
 
307
  = 3.2.9 =
308
  * load ini_set only on plugin pages
395
  * Added option to set Post Status with XPath (the value of presented XPath should be one of the following: publish, draft, trash)
396
  * Preview navigation
397
 
398
+ = 3.0.4 =
399
  * Fixed import categories;
400
  * Updated UI/UX;
401
  * Added import/export templates feature;
403
  * Added option to set post status with XPath;
404
  * Added feeds encoding feature;
405
 
406
+ = 3.0.2 =
407
  * Added support for the WooCommerce add-on
408
 
409
+ = 3.0 =
410
  * Free edition of 3.0 pro release
411
 
412
  = 2.14 =
413
  * Category list delimiter bug fix
414
 
415
  = 2.13 =
416
+ * Tons of bug fixes, updates, and additional features.
417
 
418
 
419
  = 2.12 =