Import users from CSV with meta - Version 1.14.3.1

Version Description

  • Problems uploading users from fronted fixed
Download this release

Release Info

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

Code changes from version 1.14.3 to 1.14.3.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.14.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -304,10 +304,10 @@ function acui_admin_tabs( $current = 'homepage' ) {
304
 
305
  function acui_fileupload_process( $form_data, $is_cron = false, $is_frontend = false ) {
306
  if ( !defined( 'DOING_CRON' ) && ( !isset( $form_data['security'] ) || !wp_verify_nonce( $form_data['security'], 'codection-security' ) ) ){
307
- wp_die( __( 'Nonce check failed', 'import-users-from-csv-with-meta' ) );
308
  }
309
 
310
- if( empty( $_FILES['uploadfile']['name'] ) ):
311
  $path_to_file = wp_normalize_path( $form_data["path_to_file"] );
312
 
313
  if( validate_file( $path_to_file ) !== 0 ){
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.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
304
 
305
  function acui_fileupload_process( $form_data, $is_cron = false, $is_frontend = false ) {
306
  if ( !defined( 'DOING_CRON' ) && ( !isset( $form_data['security'] ) || !wp_verify_nonce( $form_data['security'], 'codection-security' ) ) ){
307
+ wp_die( __( 'Nonce check failed', 'import-users-from-csv-with-meta' ) );
308
  }
309
 
310
+ if( empty( $_FILES['uploadfile']['name'] ) || ( isset( $form_data['is_frontend'] ) && $form_data['is_frontend'] ) ):
311
  $path_to_file = wp_normalize_path( $form_data["path_to_file"] );
312
 
313
  if( validate_file( $path_to_file ) !== 0 ){
include/shortcode-frontend.php CHANGED
@@ -18,6 +18,7 @@ function acui_frontend() {
18
  $form_data[ "path_to_file" ] = get_attached_file( $csv_file_id );
19
  $form_data[ "role" ] = get_option( "acui_frontend_role");
20
  $form_data[ "empty_cell_action" ] = "leave";
 
21
  $form_data[ "security" ] = wp_create_nonce( "codection-security" );
22
 
23
  acui_fileupload_process( $form_data, false, true );
18
  $form_data[ "path_to_file" ] = get_attached_file( $csv_file_id );
19
  $form_data[ "role" ] = get_option( "acui_frontend_role");
20
  $form_data[ "empty_cell_action" ] = "leave";
21
+ $form_data[ "is_frontend" ] = true;
22
  $form_data[ "security" ] = wp_create_nonce( "codection-security" );
23
 
24
  acui_fileupload_process( $form_data, false, true );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: carazo, hornero
3
  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.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 =
95
  * Filter added to fix CSV files upload problems
96
 
3
  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.1
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.1 =
95
+ * Problems uploading users from fronted fixed
96
+
97
  = 1.14.3 =
98
  * Filter added to fix CSV files upload problems
99