Version Description
- Fixed some problems thanks to @alexgav (https://wordpress.org/support/topic/issue-in-cron-import-tab/)
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.14.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.14.3.2 to 1.14.3.3
- classes/cron.php +1 -1
- import-users-from-csv-with-meta.php +1 -2
- importer.php +4 -0
- readme.txt +4 -1
- test.csv +1 -7
classes/cron.php
CHANGED
@@ -134,7 +134,7 @@ class ACUI_Cron{
|
|
134 |
<tr class="form-field form-required">
|
135 |
<th scope="row"><label for="update-roles-existing-users"><?php _e( 'Update roles for existing users?', 'import-users-from-csv-with-meta' ); ?></label></th>
|
136 |
<td>
|
137 |
-
<input type="checkbox" name="update-roles-existing-users" value="yes" <?php if( $update_roles_existing_users
|
138 |
</td>
|
139 |
</tr>
|
140 |
|
134 |
<tr class="form-field form-required">
|
135 |
<th scope="row"><label for="update-roles-existing-users"><?php _e( 'Update roles for existing users?', 'import-users-from-csv-with-meta' ); ?></label></th>
|
136 |
<td>
|
137 |
+
<input type="checkbox" name="update-roles-existing-users" value="yes" <?php if( $update_roles_existing_users ) echo "checked='checked'"; ?>/>
|
138 |
</td>
|
139 |
</tr>
|
140 |
|
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.14.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' ) ) exit;
|
16 |
|
17 |
$wp_users_fields = array( "id", "user_nicename", "user_url", "display_name", "nickname", "first_name", "last_name", "description", "jabber", "aim", "yim", "user_registered", "password", "user_pass", "locale" );
|
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.14.3.3
|
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' ) ) exit;
|
15 |
|
16 |
$wp_users_fields = array( "id", "user_nicename", "user_url", "display_name", "nickname", "first_name", "last_name", "description", "jabber", "aim", "yim", "user_registered", "password", "user_pass", "locale" );
|
importer.php
CHANGED
@@ -208,6 +208,10 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
|
|
208 |
}
|
209 |
else{
|
210 |
$roles_cells = explode( ',', $data[ $role_position ] );
|
|
|
|
|
|
|
|
|
211 |
array_walk( $roles_cells, 'trim' );
|
212 |
$role = $roles_cells;
|
213 |
}
|
208 |
}
|
209 |
else{
|
210 |
$roles_cells = explode( ',', $data[ $role_position ] );
|
211 |
+
|
212 |
+
if( !is_array( $roles_cells ) )
|
213 |
+
$roles_cells = array( $roles_cells );
|
214 |
+
|
215 |
array_walk( $roles_cells, 'trim' );
|
216 |
$role = $roles_cells;
|
217 |
}
|
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.2.2
|
7 |
-
Stable tag: 1.14.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -91,6 +91,9 @@ Plugin will automatically detect:
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
94 |
= 1.14.3.2 =
|
95 |
* Added CSS to fix table mobile view
|
96 |
|
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.2.2
|
7 |
+
Stable tag: 1.14.3.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 1.14.3.3 =
|
95 |
+
* Fixed some problems thanks to @alexgav (https://wordpress.org/support/topic/issue-in-cron-import-tab/)
|
96 |
+
|
97 |
= 1.14.3.2 =
|
98 |
* Added CSS to fix table mobile view
|
99 |
|
test.csv
CHANGED
@@ -1,8 +1,2 @@
|
|
1 |
Username,Email,Password,Address,City,State,Zip code,Country,user_url
|
2 |
-
|
3 |
-
javier,javier@micorreo.com,pass,Av. Cervantes,C�rdoba,C�rdoba,14004,Espa�a,http://www.linuxhispano.net
|
4 |
-
elissa,eliss@mymail.com,elis2013,Verona,Ferrara,Ferrara,89891,Italia,
|
5 |
-
piere,mon@mon.fr,passwordfrance,Nation,Par�s,�le de la Cit�,28280,France,
|
6 |
-
peter,pet@me.com,passpass,National,Washington,Columbia,2001,USA,
|
7 |
-
luis,luisperez@correo.es,contrasenna,Sol,Madrid,Madrid,28005,Spain,
|
8 |
-
eleonora,eleonora@me.it,barele,Spagna,Roma,Roma,10101,Italia,
|
1 |
Username,Email,Password,Address,City,State,Zip code,Country,user_url
|
2 |
+
javier,javier@micorreo.com,pass,Av. Cervantes,C�rdoba,C�rdoba,14004,Espa�a,http://www.linuxhispano.net
|
|
|
|
|
|
|
|
|
|
|
|