Import users from CSV with meta - Version 1.11.3.8.1

Version Description

  • Fixed bug thanks to @xenator for discovering the bug (https://wordpress.org/support/topic/uncaught-error-while-importing-users/#post-10618130)
Download this release

Release Info

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

Code changes from version 1.11.3.8 to 1.11.3.8.1

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.8
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.8.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
importer.php CHANGED
@@ -333,8 +333,11 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
333
 
334
  $invalid_roles = array();
335
  if( !empty( $role ) ){
336
- if( !is_array( $role ) )
337
- $role[] = $role;
 
 
 
338
 
339
  foreach ($role as $single_role) {
340
  $single_role = strtolower($single_role);
333
 
334
  $invalid_roles = array();
335
  if( !empty( $role ) ){
336
+ if( !is_array( $role ) ){
337
+ $role_tmp = $role;
338
+ $role = array();
339
+ $role[] = $role_tmp;
340
+ }
341
 
342
  foreach ($role as $single_role) {
343
  $single_role = strtolower($single_role);
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.8
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.8 =
75
  * Fixed mail sending in frontend import
76
  * Now you can activate users with WP Members in frontend import
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.8.1
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.8.1 =
75
+ * Fixed bug thanks to @xenator for discovering the bug (https://wordpress.org/support/topic/uncaught-error-while-importing-users/#post-10618130)
76
+
77
  = 1.11.3.8 =
78
  * Fixed mail sending in frontend import
79
  * Now you can activate users with WP Members in frontend import