Import users from CSV with meta - Version 1.15.4.3

Version Description

  • Duplicate email error thrown updating users
Download this release

Release Info

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

Code changes from version 1.15.4.2 to 1.15.4.3

import-users-from-csv-with-meta.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
- Version: 1.15.4.2
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
+ Version: 1.15.4.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
importer.php CHANGED
@@ -285,7 +285,14 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
285
  'ID' => $user_id,
286
  'user_email' => $email
287
  );
288
- wp_update_user( $updateEmailArgs );
 
 
 
 
 
 
 
289
  }
290
 
291
  $created = false;
285
  'ID' => $user_id,
286
  'user_email' => $email
287
  );
288
+
289
+ $update_email_result = wp_update_user( $updateEmailArgs );
290
+
291
+ if( is_wp_error( $update_email_result ) ){
292
+ $problematic_row = true;
293
+ $error_importing = true;
294
+ $data[0] = $update_email_result->get_error_message();
295
+ }
296
  }
297
 
298
  $created = false;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://codection.com/go/donate-import-users-from-csv-with-meta/
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: 5.3.2
7
- Stable tag: 1.15.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -98,6 +98,9 @@ Plugin will automatically detect:
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 1.15.4.2 =
102
  * New filters added
103
 
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: 5.3.2
7
+ Stable tag: 1.15.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 1.15.4.3 =
102
+ * Duplicate email error thrown updating users
103
+
104
  = 1.15.4.2 =
105
  * New filters added
106