Import users from CSV with meta - Version 1.9.9.8

Version Description

  • Password bug fixed. Now it works as it should (like it is explained in documentation)
Download this release

Release Info

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

Code changes from version 1.9.9.7 to 1.9.9.8

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.7
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.8
8
  Author URI: http://codection.com
9
  */
10
 
importer.php CHANGED
@@ -159,7 +159,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false
159
  if( $user->user_login == $username ){
160
  $user_id = $id;
161
 
162
- if( $password_position !== false )
163
  wp_set_password( $password, $user_id );
164
 
165
  if( !empty( $email ) ) {
@@ -199,7 +199,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false
199
  $user_object = get_user_by( "login", $username );
200
  $user_id = $user_object->ID;
201
 
202
- if( $password_position !== false )
203
  wp_set_password( $password, $user_id );
204
 
205
  if( !empty( $email ) ) {
@@ -223,7 +223,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false
223
  $data[0] = __( 'User already exists as:', 'import-users-from-csv-with-meta' ) . $user_object->user_login . '<br/>' . __( '(in this CSV file is called:', 'import-users-from-csv-with-meta' ) . $username . ")";
224
  $problematic_row = true;
225
 
226
- if( $password_position !== false )
227
  wp_set_password( $password, $user_id );
228
 
229
  $created = false;
159
  if( $user->user_login == $username ){
160
  $user_id = $id;
161
 
162
+ if( $password !== "" )
163
  wp_set_password( $password, $user_id );
164
 
165
  if( !empty( $email ) ) {
199
  $user_object = get_user_by( "login", $username );
200
  $user_id = $user_object->ID;
201
 
202
+ if( $password !== "" )
203
  wp_set_password( $password, $user_id );
204
 
205
  if( !empty( $email ) ) {
223
  $data[0] = __( 'User already exists as:', 'import-users-from-csv-with-meta' ) . $user_object->user_login . '<br/>' . __( '(in this CSV file is called:', 'import-users-from-csv-with-meta' ) . $username . ")";
224
  $problematic_row = true;
225
 
226
+ if( $password !== "" )
227
  wp_set_password( $password, $user_id );
228
 
229
  $created = false;
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.7
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.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
 
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.8
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.8 =
75
+ * Password bug fixed. Now it works as it should (like it is explained in documentation)
76
+
77
  = 1.9.9.7 =
78
  * 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)
79