Import users from CSV with meta - Version 1.17.5.4

Version Description

  • Solved this issue https://wordpress.org/support/topic/password-gets-changed/
  • Solved this issue https://wordpress.org/support/topic/users-without-an-email-address-are-imported/
  • Others issues solved
Download this release

Release Info

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

Code changes from version 1.17.5.3 to 1.17.5.4

classes/import.php CHANGED
@@ -344,10 +344,12 @@ class ACUI_Import{
344
  if( !empty( $email ) && ( ( sanitize_email( $email ) == '' ) ) ){ // if email is invalid
345
  $errors[] = $acui_helper->new_error( $row, sprintf( __( 'Invalid email "%s"', 'import-users-from-csv-with-meta' ), $email ) );
346
  $data[0] = __('Invalid EMail','import-users-from-csv-with-meta')." ($email)";
 
347
  }
348
  elseif( empty( $email) ) {
349
  $errors[] = $acui_helper->new_error( $row, __( 'Email not specified', 'import-users-from-csv-with-meta' ) );
350
  $data[0] = __( 'EMail not specified', 'import-users-from-csv-with-meta' );
 
351
  }
352
 
353
  if( !empty( $id ) ){ // if user have used id
@@ -457,7 +459,6 @@ class ACUI_Import{
457
  wp_set_password( $password, $user_id );
458
  $password_changed = true;
459
  }
460
-
461
 
462
  $created = false;
463
  }
@@ -631,6 +632,9 @@ class ACUI_Import{
631
 
632
  // send mail
633
  if( isset( $mail_for_this_user ) && $mail_for_this_user ){
 
 
 
634
  ACUI_Email_Options::send_email( $user_object, $positions, $headers, $data, $created, $password );
635
  }
636
 
344
  if( !empty( $email ) && ( ( sanitize_email( $email ) == '' ) ) ){ // if email is invalid
345
  $errors[] = $acui_helper->new_error( $row, sprintf( __( 'Invalid email "%s"', 'import-users-from-csv-with-meta' ), $email ) );
346
  $data[0] = __('Invalid EMail','import-users-from-csv-with-meta')." ($email)";
347
+ continue;
348
  }
349
  elseif( empty( $email) ) {
350
  $errors[] = $acui_helper->new_error( $row, __( 'Email not specified', 'import-users-from-csv-with-meta' ) );
351
  $data[0] = __( 'EMail not specified', 'import-users-from-csv-with-meta' );
352
+ continue;
353
  }
354
 
355
  if( !empty( $id ) ){ // if user have used id
459
  wp_set_password( $password, $user_id );
460
  $password_changed = true;
461
  }
 
462
 
463
  $created = false;
464
  }
632
 
633
  // send mail
634
  if( isset( $mail_for_this_user ) && $mail_for_this_user ){
635
+ if( !$created && $update_allow_update_passwords == 'no' )
636
+ $password = __( 'Password has not been changed', 'import-users-from-csv-with-meta' );
637
+
638
  ACUI_Email_Options::send_email( $user_object, $positions, $headers, $data, $created, $password );
639
  }
640
 
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.17.5.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -11,7 +11,6 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
14
-
15
  if ( ! defined( 'ABSPATH' ) )
16
  exit;
17
 
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.17.5.4
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
 
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
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.7.2
7
- Stable tag: 1.17.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -103,6 +103,11 @@ Plugin will automatically detect:
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
106
  = 1.17.5.3 =
107
  * You can now force the users to reset their passwords after login if you have changed the password in the import
108
  * Some code improvements
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.7.2
7
+ Stable tag: 1.17.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
103
 
104
  == Changelog ==
105
 
106
+ = 1.17.5.4 =
107
+ * Solved this issue https://wordpress.org/support/topic/password-gets-changed/
108
+ * Solved this issue https://wordpress.org/support/topic/users-without-an-email-address-are-imported/
109
+ * Others issues solved
110
+
111
  = 1.17.5.3 =
112
  * You can now force the users to reset their passwords after login if you have changed the password in the import
113
  * Some code improvements