Version Description
- Removed some tags when printing log in cron job
- Improved error message with Customer Area Addon
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.14.3.5 |
Comparing to | |
See all releases |
Code changes from version 1.14.3.4 to 1.14.3.5
- addons/customer-area.php +7 -1
- classes/cron.php +1 -1
- import-users-from-csv-with-meta.php +2 -4
- readme.txt +5 -1
addons/customer-area.php
CHANGED
@@ -40,7 +40,13 @@ function acui_cumg_post_import_single_user( $headers, $row, $user_id ){
|
|
40 |
|
41 |
foreach ( $user_groups as $user_group ) {
|
42 |
$group = get_page_by_path( $user_group, OBJECT, 'cuar_user_group' );
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
|
46 |
$object_addon = new CUAR_UserGroupAddOn();
|
40 |
|
41 |
foreach ( $user_groups as $user_group ) {
|
42 |
$group = get_page_by_path( $user_group, OBJECT, 'cuar_user_group' );
|
43 |
+
|
44 |
+
if( is_object( $group ) )
|
45 |
+
$new_group_ids[] = $group->ID;
|
46 |
+
else{
|
47 |
+
echo "$group is not a name of a group in Customer Area<br/>";
|
48 |
+
return;
|
49 |
+
}
|
50 |
}
|
51 |
|
52 |
$object_addon = new CUAR_UserGroupAddOn();
|
classes/cron.php
CHANGED
@@ -233,7 +233,7 @@ class ACUI_Cron{
|
|
233 |
<tr class="form-field form-required">
|
234 |
<th scope="row"><label for="log"><?php _e( 'Last actions of schedule task', 'import-users-from-csv-with-meta' ); ?></label></th>
|
235 |
<td>
|
236 |
-
<pre><?php echo $log; ?></pre>
|
237 |
</td>
|
238 |
</tr>
|
239 |
|
233 |
<tr class="form-field form-required">
|
234 |
<th scope="row"><label for="log"><?php _e( 'Last actions of schedule task', 'import-users-from-csv-with-meta' ); ?></label></th>
|
235 |
<td>
|
236 |
+
<pre><?php echo strip_tags( $log, '<br><div><p><strong><style><h2><h3><table><tbody><tr><td><th>' ); ?></pre>
|
237 |
</td>
|
238 |
</tr>
|
239 |
|
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" );
|
@@ -428,6 +427,7 @@ function acui_manage_cron_process( $form_data ){
|
|
428 |
update_option( "acui_cron_send_mail", isset( $form_data["send-mail-cron"] ) && $form_data["send-mail-cron"] == "yes" );
|
429 |
update_option( "acui_cron_send_mail_updated", isset( $form_data["send-mail-updated"] ) && $form_data["send-mail-updated"] == "yes" );
|
430 |
update_option( "acui_cron_delete_users", isset( $form_data["cron-delete-users"] ) && $form_data["cron-delete-users"] == "yes" );
|
|
|
431 |
update_option( "acui_move_file_cron", isset( $form_data["move-file-cron"] ) && $form_data["move-file-cron"] == "yes" );
|
432 |
update_option( "acui_cron_path_to_move_auto_rename", isset( $form_data["path_to_move_auto_rename"] ) && $form_data["path_to_move_auto_rename"] == "yes" );
|
433 |
update_option( "acui_cron_allow_multiple_accounts", ( isset( $form_data["allow_multiple_accounts"] ) && $form_data["allow_multiple_accounts"] == "yes" ) ? "allowed" : "not_allowed" );
|
@@ -436,8 +436,6 @@ function acui_manage_cron_process( $form_data ){
|
|
436 |
update_option( "acui_cron_period", sanitize_text_field( $form_data["period"] ) );
|
437 |
update_option( "acui_cron_role", sanitize_text_field( $form_data["role"] ) );
|
438 |
update_option( "acui_cron_update_roles_existing_users", isset( $form_data["update-roles-existing-users"] ) && $form_data["update-roles-existing-users"] == "yes" );
|
439 |
-
update_option( "acui_cron_delete_users", isset( $form_data["cron-delete-users"] ) && $form_data["cron-delete-users"] == "yes" );
|
440 |
-
update_option( "acui_cron_delete_users_assign_posts", sanitize_text_field( $form_data["cron-delete-users-assign-posts"] ) );
|
441 |
update_option( "acui_cron_change_role_not_present", isset( $form_data["cron-change-role-not-present"] ) && $form_data["cron-change-role-not-present"] == "yes" );
|
442 |
update_option( "acui_cron_change_role_not_present_role", sanitize_text_field( $form_data["cron-change-role-not-present-role"] ) );
|
443 |
?>
|
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.5
|
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" );
|
427 |
update_option( "acui_cron_send_mail", isset( $form_data["send-mail-cron"] ) && $form_data["send-mail-cron"] == "yes" );
|
428 |
update_option( "acui_cron_send_mail_updated", isset( $form_data["send-mail-updated"] ) && $form_data["send-mail-updated"] == "yes" );
|
429 |
update_option( "acui_cron_delete_users", isset( $form_data["cron-delete-users"] ) && $form_data["cron-delete-users"] == "yes" );
|
430 |
+
update_option( "acui_cron_delete_users_assign_posts", sanitize_text_field( $form_data["cron-delete-users-assign-posts"] ) );
|
431 |
update_option( "acui_move_file_cron", isset( $form_data["move-file-cron"] ) && $form_data["move-file-cron"] == "yes" );
|
432 |
update_option( "acui_cron_path_to_move_auto_rename", isset( $form_data["path_to_move_auto_rename"] ) && $form_data["path_to_move_auto_rename"] == "yes" );
|
433 |
update_option( "acui_cron_allow_multiple_accounts", ( isset( $form_data["allow_multiple_accounts"] ) && $form_data["allow_multiple_accounts"] == "yes" ) ? "allowed" : "not_allowed" );
|
436 |
update_option( "acui_cron_period", sanitize_text_field( $form_data["period"] ) );
|
437 |
update_option( "acui_cron_role", sanitize_text_field( $form_data["role"] ) );
|
438 |
update_option( "acui_cron_update_roles_existing_users", isset( $form_data["update-roles-existing-users"] ) && $form_data["update-roles-existing-users"] == "yes" );
|
|
|
|
|
439 |
update_option( "acui_cron_change_role_not_present", isset( $form_data["cron-change-role-not-present"] ) && $form_data["cron-change-role-not-present"] == "yes" );
|
440 |
update_option( "acui_cron_change_role_not_present_role", sanitize_text_field( $form_data["cron-change-role-not-present-role"] ) );
|
441 |
?>
|
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.3
|
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,10 @@ Plugin will automatically detect:
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
94 |
= 1.14.3.4 =
|
95 |
* Fixed other problem thanks to @alexgav (https://wordpress.org/support/topic/issue-in-cron-import-tab/)
|
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.3
|
7 |
+
Stable tag: 1.14.3.5
|
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.5 =
|
95 |
+
* Removed some tags when printing log in cron job
|
96 |
+
* Improved error message with Customer Area Addon
|
97 |
+
|
98 |
= 1.14.3.4 =
|
99 |
* Fixed other problem thanks to @alexgav (https://wordpress.org/support/topic/issue-in-cron-import-tab/)
|
100 |
|