Import users from CSV with meta - Version 1.14.2.12

Version Description

  • Typos fixed thanks to https://wordpress.org/support/topic/typo-in-the-settings-page/
Download this release

Release Info

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

Code changes from version 1.14.2.11 to 1.14.2.12

classes/cron.php CHANGED
@@ -114,9 +114,9 @@ class ACUI_Cron{
114
  <select id="role" name="role">
115
  <?php
116
  if( $role == '' )
117
- echo "<option selected='selected' value=''>" . __( 'Disable role assignement in cron import', 'import-users-from-csv-with-meta' ) . "</option>";
118
  else
119
- echo "<option value=''>" . __( 'Disable role assignement in cron import', 'import-users-from-csv-with-meta' ) . "</option>";
120
 
121
  $list_roles = acui_get_editable_roles();
122
  foreach ($list_roles as $key => $value) {
@@ -183,9 +183,9 @@ class ACUI_Cron{
183
  <select id="cron-delete-users-assign-posts" name="cron-delete-users-assign-posts">
184
  <?php
185
  if( $cron_delete_users_assign_posts == '' )
186
- echo "<option selected='selected' value=''>" . __( 'Delete posts of deled users without assing to any user', 'import-users-from-csv-with-meta' ) . "</option>";
187
  else
188
- echo "<option value=''>" . __( 'Delete posts of deled users without assing to any user', 'import-users-from-csv-with-meta' ) . "</option>";
189
 
190
  $blogusers = get_users( array( 'fields' => array( 'ID', 'display_name' ) ) );
191
 
114
  <select id="role" name="role">
115
  <?php
116
  if( $role == '' )
117
+ echo "<option selected='selected' value=''>" . __( 'Disable role assignment in cron import', 'import-users-from-csv-with-meta' ) . "</option>";
118
  else
119
+ echo "<option value=''>" . __( 'Disable role assignment in cron import', 'import-users-from-csv-with-meta' ) . "</option>";
120
 
121
  $list_roles = acui_get_editable_roles();
122
  foreach ($list_roles as $key => $value) {
183
  <select id="cron-delete-users-assign-posts" name="cron-delete-users-assign-posts">
184
  <?php
185
  if( $cron_delete_users_assign_posts == '' )
186
+ echo "<option selected='selected' value=''>" . __( 'Delete posts of deleted users without assigning to any user', 'import-users-from-csv-with-meta' ) . "</option>";
187
  else
188
+ echo "<option value=''>" . __( 'Delete posts of deleted users without assigning to any user', 'import-users-from-csv-with-meta' ) . "</option>";
189
 
190
  $blogusers = get_users( array( 'fields' => array( 'ID', 'display_name' ) ) );
191
 
classes/email-options.php CHANGED
@@ -16,7 +16,7 @@ class ACUI_Email_Options{
16
  $template_id = get_option( "acui_mail_template_id" );
17
  $attachment_id = get_option( "acui_mail_attachment_id" );
18
  $enable_email_templates = get_option( "acui_enable_email_templates" );
19
- $automattic_wordpress_email = get_option( "acui_automatic_wordpress_email" );
20
  ?>
21
  <form method="POST" enctype="multipart/form-data" action="" accept-charset="utf-8">
22
  <h3><?php _e('Mail options','import-users-from-csv-with-meta'); ?></h3>
@@ -28,14 +28,14 @@ class ACUI_Email_Options{
28
  <td>
29
  <fieldset>
30
  <legend class="screen-reader-text">
31
- <span><?php _e( 'Send automattic WordPress emails?', 'import-users-from-csv-with-meta' ); ?></span>
32
  </legend>
33
- <label for="automattic_wordpress_email">
34
- <select name="automattic_wordpress_email" id="automattic_wordpress_email">
35
- <option <?php if( $automattic_wordpress_email == 'false' ) echo "selected='selected'"; ?> value="false"><?php _e( "Deactivate WordPress automattic email when an user is updated or his password is changed", 'import-users-from-csv-with-meta' ) ;?></option>
36
- <option <?php if( $automattic_wordpress_email == 'true' ) echo "selected='selected'"; ?> value="true"><?php _e( 'Activate WordPress automattic email when an user is updated or his password is changed', 'import-users-from-csv-with-meta' ); ?></option>
37
  </select>
38
- <span class="description"><? _e( "When you update an user or change his password, WordPress prepare and send automattic email, you can deactivate it here.", 'import-users-from-csv-with-meta' ); ?></span>
39
  </label>
40
  </fieldset>
41
  </td>
16
  $template_id = get_option( "acui_mail_template_id" );
17
  $attachment_id = get_option( "acui_mail_attachment_id" );
18
  $enable_email_templates = get_option( "acui_enable_email_templates" );
19
+ $automatic_wordpress_email = get_option( "acui_automatic_wordpress_email" );
20
  ?>
21
  <form method="POST" enctype="multipart/form-data" action="" accept-charset="utf-8">
22
  <h3><?php _e('Mail options','import-users-from-csv-with-meta'); ?></h3>
28
  <td>
29
  <fieldset>
30
  <legend class="screen-reader-text">
31
+ <span><?php _e( 'Send automatic WordPress emails?', 'import-users-from-csv-with-meta' ); ?></span>
32
  </legend>
33
+ <label for="automatic_wordpress_email">
34
+ <select name="automatic_wordpress_email" id="automatic_wordpress_email">
35
+ <option <?php if( $automatic_wordpress_email == 'false' ) echo "selected='selected'"; ?> value="false"><?php _e( "Deactivate WordPress automatic email when an user is updated or his password is changed", 'import-users-from-csv-with-meta' ) ;?></option>
36
+ <option <?php if( $automatic_wordpress_email == 'true' ) echo "selected='selected'"; ?> value="true"><?php _e( 'Activate WordPress automatic email when an user is updated or his password is changed', 'import-users-from-csv-with-meta' ); ?></option>
37
  </select>
38
+ <span class="description"><? _e( "When you update an user or change his password, WordPress prepare and send automatic email, you can deactivate it here.", 'import-users-from-csv-with-meta' ); ?></span>
39
  </label>
40
  </fieldset>
41
  </td>
classes/frontend.php CHANGED
@@ -39,9 +39,9 @@ class ACUI_Frontend{
39
  <select id="role-frontend" name="role-frontend">
40
  <?php
41
  if( $role == '' )
42
- echo "<option selected='selected' value=''>" . __( 'Disable role assignement in frontend import', 'import-users-from-csv-with-meta' ) . "</option>";
43
  else
44
- echo "<option value=''>" . __( 'Disable role assignement in frontend import', 'import-users-from-csv-with-meta' ) . "</option>";
45
 
46
  $list_roles = acui_get_editable_roles();
47
  foreach ($list_roles as $key => $value) {
@@ -86,9 +86,9 @@ class ACUI_Frontend{
86
  <select id="delete-users-assign-posts-frontend" name="delete-users-assign-posts-frontend">
87
  <?php
88
  if( $delete_users_assign_posts_frontend == '' )
89
- echo "<option selected='selected' value=''>" . __( 'Delete posts of deled users without assing to any user', 'import-users-from-csv-with-meta' ) . "</option>";
90
  else
91
- echo "<option value=''>" . __( 'Delete posts of deled users without assing to any user', 'import-users-from-csv-with-meta' ) . "</option>";
92
 
93
  $blogusers = get_users( array( 'fields' => array( 'ID', 'display_name' ) ) );
94
 
39
  <select id="role-frontend" name="role-frontend">
40
  <?php
41
  if( $role == '' )
42
+ echo "<option selected='selected' value=''>" . __( 'Disable role assignment in frontend import', 'import-users-from-csv-with-meta' ) . "</option>";
43
  else
44
+ echo "<option value=''>" . __( 'Disable role assignment in frontend import', 'import-users-from-csv-with-meta' ) . "</option>";
45
 
46
  $list_roles = acui_get_editable_roles();
47
  foreach ($list_roles as $key => $value) {
86
  <select id="delete-users-assign-posts-frontend" name="delete-users-assign-posts-frontend">
87
  <?php
88
  if( $delete_users_assign_posts_frontend == '' )
89
+ echo "<option selected='selected' value=''>" . __( 'Delete posts of deleted users without assigning to any user', 'import-users-from-csv-with-meta' ) . "</option>";
90
  else
91
+ echo "<option value=''>" . __( 'Delete posts of deleted users without assigning to any user', 'import-users-from-csv-with-meta' ) . "</option>";
92
 
93
  $blogusers = get_users( array( 'fields' => array( 'ID', 'display_name' ) ) );
94
 
classes/homepage.php CHANGED
@@ -154,7 +154,7 @@ class ACUI_Homepage{
154
  </div>
155
  <div style="margin-left:25px;">
156
  <select id="delete_users_assign_posts" name="delete_users_assign_posts">
157
- <option value=''><?php _e( 'Delete posts of deled users without assing to any user', 'import-users-from-csv-with-meta' ); ?></option>
158
  <?php
159
  $blogusers = get_users( array( 'fields' => array( 'ID', 'display_name' ) ) );
160
 
154
  </div>
155
  <div style="margin-left:25px;">
156
  <select id="delete_users_assign_posts" name="delete_users_assign_posts">
157
+ <option value=''><?php _e( 'Delete posts of deleted users without assigning to any user', 'import-users-from-csv-with-meta' ); ?></option>
158
  <?php
159
  $blogusers = get_users( array( 'fields' => array( 'ID', 'display_name' ) ) );
160
 
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.2.11
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -367,13 +367,13 @@ function acui_save_mail_template( $form_data ){
367
  wp_die( __( 'Nonce check failed', 'import-users-from-csv-with-meta' ) );
368
  }
369
 
370
- $automattic_wordpress_email = sanitize_text_field( $form_data["automattic_wordpress_email"] );
371
  $subject_mail = sanitize_text_field( $form_data["subject_mail"] );
372
  $body_mail = wp_kses_post( stripslashes( $form_data["body_mail"] ) );
373
  $template_id = intval( $form_data["template_id"] );
374
  $email_template_attachment_id = intval( $form_data["email_template_attachment_id"] );
375
 
376
- update_option( "acui_automatic_wordpress_email", $automattic_wordpress_email );
377
  update_option( "acui_mail_subject", $subject_mail );
378
  update_option( "acui_mail_body", $body_mail );
379
  update_option( "acui_mail_template_id", $template_id );
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.2.12
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
367
  wp_die( __( 'Nonce check failed', 'import-users-from-csv-with-meta' ) );
368
  }
369
 
370
+ $automatic_wordpress_email = sanitize_text_field( $form_data["automatic_wordpress_email"] );
371
  $subject_mail = sanitize_text_field( $form_data["subject_mail"] );
372
  $body_mail = wp_kses_post( stripslashes( $form_data["body_mail"] ) );
373
  $template_id = intval( $form_data["template_id"] );
374
  $email_template_attachment_id = intval( $form_data["email_template_attachment_id"] );
375
 
376
+ update_option( "acui_automatic_wordpress_email", $automatic_wordpress_email );
377
  update_option( "acui_mail_subject", $subject_mail );
378
  update_option( "acui_mail_body", $body_mail );
379
  update_option( "acui_mail_template_id", $template_id );
importer.php CHANGED
@@ -40,8 +40,12 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
40
  $headers = array();
41
  $headers_filtered = array();
42
  $update_existing_users = isset( $form_data["update_existing_users"] ) ? sanitize_text_field( $form_data["update_existing_users"] ) : '';
43
- $role_default = isset( $form_data["role"] ) ? $form_data["role"] : '';
 
 
 
44
  array_walk( $role_default, 'sanitize_text_field' );
 
45
  $update_roles_existing_users = isset( $form_data["update_roles_existing_users"] ) ? sanitize_text_field( $form_data["update_roles_existing_users"] ) : '';
46
  $empty_cell_action = isset( $form_data["empty_cell_action"] ) ? sanitize_text_field( $form_data["empty_cell_action"] ) : '';
47
  $delete_users = isset( $form_data["delete_users"] ) ? sanitize_text_field( $form_data["delete_users"] ) : '';
40
  $headers = array();
41
  $headers_filtered = array();
42
  $update_existing_users = isset( $form_data["update_existing_users"] ) ? sanitize_text_field( $form_data["update_existing_users"] ) : '';
43
+
44
+ $role_default = isset( $form_data["role"] ) ? $form_data["role"] : array( '' );
45
+ if( !is_array( $role_default ) )
46
+ $role_default = array( $role_default );
47
  array_walk( $role_default, 'sanitize_text_field' );
48
+
49
  $update_roles_existing_users = isset( $form_data["update_roles_existing_users"] ) ? sanitize_text_field( $form_data["update_roles_existing_users"] ) : '';
50
  $empty_cell_action = isset( $form_data["empty_cell_action"] ) ? sanitize_text_field( $form_data["empty_cell_action"] ) : '';
51
  $delete_users = isset( $form_data["delete_users"] ) ? sanitize_text_field( $form_data["delete_users"] ) : '';
languages/import-users-from-csv-with-meta-de_DE.po CHANGED
@@ -849,12 +849,12 @@ msgid "WordPress automatic emails users updated"
849
  msgstr "Automatische WordPress Emails angepasst"
850
 
851
  #: importer.php:947
852
- msgid "Send automattic WordPress emails?"
853
  msgstr "Automatische WordPress Emails senden?"
854
 
855
  #: importer.php:951
856
  msgid ""
857
- "Deactivate WordPress automattic email when an user is updated or his "
858
  "password is changed"
859
  msgstr ""
860
  "Automatische WordPress Emails deaktivieren, wenn ein Benutzer upgedatet oder "
@@ -862,7 +862,7 @@ msgstr ""
862
 
863
  #: importer.php:952
864
  msgid ""
865
- "Activate WordPress automattic email when an user is updated or his password "
866
  "is changed"
867
  msgstr ""
868
  "Automatische WordPress Emails aktivieren, wenn ein Benutzer upgedatet oder "
@@ -871,7 +871,7 @@ msgstr ""
871
  #: importer.php:954
872
  msgid ""
873
  "When you update an user or change his password, WordPress prepare and send "
874
- "automattic email, you can deactivate it here."
875
  msgstr ""
876
  "Beim Update eines Benutzers oder einer Passwortänderung sendet WordPress "
877
  "automatisch eine Mail. Das kann hier deaktivert werden"
849
  msgstr "Automatische WordPress Emails angepasst"
850
 
851
  #: importer.php:947
852
+ msgid "Send automatic WordPress emails?"
853
  msgstr "Automatische WordPress Emails senden?"
854
 
855
  #: importer.php:951
856
  msgid ""
857
+ "Deactivate WordPress automatic email when an user is updated or his "
858
  "password is changed"
859
  msgstr ""
860
  "Automatische WordPress Emails deaktivieren, wenn ein Benutzer upgedatet oder "
862
 
863
  #: importer.php:952
864
  msgid ""
865
+ "Activate WordPress automatic email when an user is updated or his password "
866
  "is changed"
867
  msgstr ""
868
  "Automatische WordPress Emails aktivieren, wenn ein Benutzer upgedatet oder "
871
  #: importer.php:954
872
  msgid ""
873
  "When you update an user or change his password, WordPress prepare and send "
874
+ "automatic email, you can deactivate it here."
875
  msgstr ""
876
  "Beim Update eines Benutzers oder einer Passwortänderung sendet WordPress "
877
  "automatisch eine Mail. Das kann hier deaktivert werden"
languages/import-users-from-csv-with-meta-fr_FR.po CHANGED
@@ -882,12 +882,12 @@ msgid "WordPress automatic emails users updated"
882
  msgstr "Courriels automatiques pour les mises à jour d’utilisateurs"
883
 
884
  #: importer.php:947
885
- msgid "Send automattic WordPress emails?"
886
  msgstr "Envoyer des courriels automatiques WordPress ?"
887
 
888
  #: importer.php:951
889
  msgid ""
890
- "Deactivate WordPress automattic email when an user is updated or his "
891
  "password is changed"
892
  msgstr ""
893
  "Désactiver le courriel automatique lorsqu'un utilisateur est mis à jour ou "
@@ -895,7 +895,7 @@ msgstr ""
895
 
896
  #: importer.php:952
897
  msgid ""
898
- "Activate WordPress automattic email when an user is updated or his password "
899
  "is changed"
900
  msgstr ""
901
  "Activer le courriel automatique quand un utilisateur est mis à jour ou son "
@@ -904,7 +904,7 @@ msgstr ""
904
  #: importer.php:954
905
  msgid ""
906
  "When you update an user or change his password, WordPress prepare and send "
907
- "automattic email, you can deactivate it here."
908
  msgstr ""
909
  "Lorsque vous mettez à jour un utilisateur ou modifiez son mot de passe, "
910
  "WordPress prépare et envoie un courrier électronique automatique, vous "
882
  msgstr "Courriels automatiques pour les mises à jour d’utilisateurs"
883
 
884
  #: importer.php:947
885
+ msgid "Send automatic WordPress emails?"
886
  msgstr "Envoyer des courriels automatiques WordPress ?"
887
 
888
  #: importer.php:951
889
  msgid ""
890
+ "Deactivate WordPress automatic email when an user is updated or his "
891
  "password is changed"
892
  msgstr ""
893
  "Désactiver le courriel automatique lorsqu'un utilisateur est mis à jour ou "
895
 
896
  #: importer.php:952
897
  msgid ""
898
+ "Activate WordPress automatic email when an user is updated or his password "
899
  "is changed"
900
  msgstr ""
901
  "Activer le courriel automatique quand un utilisateur est mis à jour ou son "
904
  #: importer.php:954
905
  msgid ""
906
  "When you update an user or change his password, WordPress prepare and send "
907
+ "automatic email, you can deactivate it here."
908
  msgstr ""
909
  "Lorsque vous mettez à jour un utilisateur ou modifiez son mot de passe, "
910
  "WordPress prépare et envoie un courrier électronique automatique, vous "
languages/import-users-from-csv-with-meta.pot CHANGED
@@ -689,25 +689,25 @@ msgid "WordPress automatic emails users updated"
689
  msgstr ""
690
 
691
  #: importer.php:951
692
- msgid "Send automattic WordPress emails?"
693
  msgstr ""
694
 
695
  #: importer.php:955
696
  msgid ""
697
- "Deactivate WordPress automattic email when an user is updated or his "
698
  "password is changed"
699
  msgstr ""
700
 
701
  #: importer.php:956
702
  msgid ""
703
- "Activate WordPress automattic email when an user is updated or his password "
704
  "is changed"
705
  msgstr ""
706
 
707
  #: importer.php:958
708
  msgid ""
709
  "When you update an user or change his password, WordPress prepare and send "
710
- "automattic email, you can deactivate it here."
711
  msgstr ""
712
 
713
  #: importer.php:966
@@ -798,7 +798,7 @@ msgid "Delete users that are not present in the CSV?"
798
  msgstr ""
799
 
800
  #: importer.php:1089 importer.php:1091
801
- msgid "Delete posts of deled users without assing to any user"
802
  msgstr ""
803
 
804
  #: importer.php:1103
@@ -808,7 +808,7 @@ msgid ""
808
  msgstr ""
809
 
810
  #: importer.php:1113 importer.php:1115
811
- msgid "Disable role assignement in cron import"
812
  msgstr ""
813
 
814
  #: importer.php:1126
689
  msgstr ""
690
 
691
  #: importer.php:951
692
+ msgid "Send automatic WordPress emails?"
693
  msgstr ""
694
 
695
  #: importer.php:955
696
  msgid ""
697
+ "Deactivate WordPress automatic email when an user is updated or his "
698
  "password is changed"
699
  msgstr ""
700
 
701
  #: importer.php:956
702
  msgid ""
703
+ "Activate WordPress automatic email when an user is updated or his password "
704
  "is changed"
705
  msgstr ""
706
 
707
  #: importer.php:958
708
  msgid ""
709
  "When you update an user or change his password, WordPress prepare and send "
710
+ "automatic email, you can deactivate it here."
711
  msgstr ""
712
 
713
  #: importer.php:966
798
  msgstr ""
799
 
800
  #: importer.php:1089 importer.php:1091
801
+ msgid "Delete posts of deleted users without assigning to any user"
802
  msgstr ""
803
 
804
  #: importer.php:1103
808
  msgstr ""
809
 
810
  #: importer.php:1113 importer.php:1115
811
+ msgid "Disable role assignment in cron import"
812
  msgstr ""
813
 
814
  #: importer.php:1126
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.1
7
- Stable tag: 1.14.2.11
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.2.11 =
95
  * Problem using "Yes, add new roles and not override existing one" was fixed
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.1
7
+ Stable tag: 1.14.2.12
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.2.12 =
95
+ * Typos fixed thanks to https://wordpress.org/support/topic/typo-in-the-settings-page/
96
+
97
  = 1.14.2.11 =
98
  * Problem using "Yes, add new roles and not override existing one" was fixed
99