Import users from CSV with meta - Version 1.11.3.14

Version Description

  • Empty email check added thanks to @malcolm-oph (https://wordpress.org/support/topic/blank-email-field-in-csv-data-not-detected/)
Download this release

Release Info

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

Code changes from version 1.11.3.13 to 1.11.3.14

import-users-from-csv-with-meta.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Import users from CSV with meta
4
  Plugin URI: https://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
- Version: 1.11.3.13
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
3
  Plugin Name: Import users from CSV with meta
4
  Plugin URI: https://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
+ Version: 1.11.3.14
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
importer.php CHANGED
@@ -250,6 +250,10 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
250
  $problematic_row = true;
251
  $data[0] = __('Invalid EMail','import-users-from-csv-with-meta')." ($email)";
252
  }
 
 
 
 
253
  elseif( username_exists( $username ) ){ // if user exists, we take his ID by login, we will update his mail if it has changed
254
  if( $update_existing_users == 'no' ){
255
  continue;
250
  $problematic_row = true;
251
  $data[0] = __('Invalid EMail','import-users-from-csv-with-meta')." ($email)";
252
  }
253
+ elseif( empty( $email) ) { // if email is blank
254
+ $problematic_row = true;
255
+ $data[0] = __( 'EMail not specified', 'import-users-from-csv-with-meta' );
256
+ }
257
  elseif( username_exists( $username ) ){ // if user exists, we take his ID by login, we will update his mail if it has changed
258
  if( $update_existing_users == 'no' ){
259
  continue;
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.9.8
7
- Stable tag: 1.11.3.13
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.11.3.13 =
75
  * Mail address with data of users can now be overriden thanks to a new filter
76
 
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.9.8
7
+ Stable tag: 1.11.3.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 1.11.3.14 =
75
+ * Empty email check added thanks to @malcolm-oph (https://wordpress.org/support/topic/blank-email-field-in-csv-data-not-detected/)
76
+
77
  = 1.11.3.13 =
78
  * Mail address with data of users can now be overriden thanks to a new filter
79