Import users from CSV with meta - Version 1.9.9.7

Version Description

  • Bug fixed in importer now value 0 is not considered as empty thanks to @lafare (https://wordpress.org/support/topic/importing-values-equal-to-0/#post-8609191)
Download this release

Release Info

Developer carazo
Plugin Icon 128x128 Import users from CSV with meta
Version 1.9.9.7
Comparing to
See all releases

Code changes from version 1.9.9.6 to 1.9.9.7

import-users-from-csv-with-meta.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Import users from CSV with meta
4
  Plugin URI: http://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
  Author: codection
7
- Version: 1.9.9.6
8
  Author URI: http://codection.com
9
  */
10
 
4
  Plugin URI: http://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
  Author: codection
7
+ Version: 1.9.9.7
8
  Author URI: http://codection.com
9
  */
10
 
importer.php CHANGED
@@ -309,7 +309,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false
309
  }
310
  else{ // wp_usermeta data
311
 
312
- if( empty( $data[ $i ] ) ){
313
  if( $empty_cell_action == "delete" )
314
  delete_user_meta( $user_id, $headers[ $i ] );
315
  else
309
  }
310
  else{ // wp_usermeta data
311
 
312
+ if( $data[ $i ] === '' ){
313
  if( $empty_cell_action == "delete" )
314
  delete_user_meta( $user_id, $headers[ $i ] );
315
  else
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://paypal.me/codection
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 4.6
7
- Stable tag: 1.9.9.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,9 @@ Plugin will automatically detect:
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 1.9.9.6 =
75
  * From now we are going to keep old versions available in repository
76
  * We don't delete loaded columns (and fields) when you deactivate the plugin
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 4.6
7
+ Stable tag: 1.9.9.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 1.9.9.7 =
75
+ * Bug fixed in importer now value 0 is not considered as empty thanks to @lafare (https://wordpress.org/support/topic/importing-values-equal-to-0/#post-8609191)
76
+
77
  = 1.9.9.6 =
78
  * From now we are going to keep old versions available in repository
79
  * We don't delete loaded columns (and fields) when you deactivate the plugin