Version Description
- Fixed bug in batch_exporter when using PHP 8
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.18.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.18.4.1 to 1.18.4.2
- classes/batch_exporter.php +6 -2
- import-users-from-csv-with-meta.php +2 -2
- readme.txt +4 -1
classes/batch_exporter.php
CHANGED
@@ -560,6 +560,8 @@ class ACUI_Batch_Exporter{
|
|
560 |
}
|
561 |
|
562 |
function prepare_data_to_export() {
|
|
|
|
|
563 |
$users = $this->get_user_id_list();
|
564 |
$this->row_data = array();
|
565 |
|
@@ -573,7 +575,7 @@ class ACUI_Batch_Exporter{
|
|
573 |
}
|
574 |
|
575 |
if( count( $this->get_filtered_columns() ) == 0 || in_array( 'role', $this->get_filtered_columns() ) )
|
576 |
-
$row['role'] = implode( ',',
|
577 |
|
578 |
foreach ( $this->get_user_meta_keys( $this->get_filtered_columns() ) as $key ) {
|
579 |
$row[ $key ] = $this->prepare( $key, get_user_meta( $user, $key, true ), $this->get_datetime_format(), $user );
|
@@ -589,6 +591,8 @@ class ACUI_Batch_Exporter{
|
|
589 |
}
|
590 |
|
591 |
function prepare( $key, $value, $datetime_format, $user = 0 ){
|
|
|
|
|
592 |
$timestamp_keys = apply_filters( 'acui_export_timestamp_keys', array( 'wc_last_active' ) );
|
593 |
$original_value = $value;
|
594 |
$value = $this->clean_bad_characters_formulas( $value );
|
@@ -598,7 +602,7 @@ class ACUI_Batch_Exporter{
|
|
598 |
}
|
599 |
|
600 |
if( $key == 'role' ){
|
601 |
-
return implode( ',',
|
602 |
}
|
603 |
|
604 |
if( is_array( $value ) || is_object( $value ) ){
|
560 |
}
|
561 |
|
562 |
function prepare_data_to_export() {
|
563 |
+
$acui_helper = new ACUI_Helper();
|
564 |
+
|
565 |
$users = $this->get_user_id_list();
|
566 |
$this->row_data = array();
|
567 |
|
575 |
}
|
576 |
|
577 |
if( count( $this->get_filtered_columns() ) == 0 || in_array( 'role', $this->get_filtered_columns() ) )
|
578 |
+
$row['role'] = implode( ',', $acui_helper->get_roles_by_user_id( $user ) );
|
579 |
|
580 |
foreach ( $this->get_user_meta_keys( $this->get_filtered_columns() ) as $key ) {
|
581 |
$row[ $key ] = $this->prepare( $key, get_user_meta( $user, $key, true ), $this->get_datetime_format(), $user );
|
591 |
}
|
592 |
|
593 |
function prepare( $key, $value, $datetime_format, $user = 0 ){
|
594 |
+
$acui_helper = new ACUI_Helper();
|
595 |
+
|
596 |
$timestamp_keys = apply_filters( 'acui_export_timestamp_keys', array( 'wc_last_active' ) );
|
597 |
$original_value = $value;
|
598 |
$value = $this->clean_bad_characters_formulas( $value );
|
602 |
}
|
603 |
|
604 |
if( $key == 'role' ){
|
605 |
+
return implode( ',', $acui_helper->get_roles_by_user_id( $user ) );
|
606 |
}
|
607 |
|
608 |
if( is_array( $value ) || is_object( $value ) ){
|
import-users-from-csv-with-meta.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Import and export users and customers
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
|
6 |
-
Version: 1.18.4.
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
@@ -14,7 +14,7 @@ Domain Path: /languages
|
|
14 |
if ( ! defined( 'ABSPATH' ) )
|
15 |
exit;
|
16 |
|
17 |
-
define( 'ACUI_VERSION', '1.18.4' );
|
18 |
|
19 |
class ImportExportUsersCustomers{
|
20 |
var $file;
|
3 |
Plugin Name: Import and export users and customers
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
|
6 |
+
Version: 1.18.4.2
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
14 |
if ( ! defined( 'ABSPATH' ) )
|
15 |
exit;
|
16 |
|
17 |
+
define( 'ACUI_VERSION', '1.18.4.2' );
|
18 |
|
19 |
class ImportExportUsersCustomers{
|
20 |
var $file;
|
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.8.1
|
7 |
-
Stable tag: 1.18.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -103,6 +103,9 @@ Plugin will automatically detect:
|
|
103 |
|
104 |
== Changelog ==
|
105 |
|
|
|
|
|
|
|
106 |
= 1.18.4.1 =
|
107 |
* Fixed bug in batch_exporter that could create fatal errors on executing
|
108 |
|
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.8.1
|
7 |
+
Stable tag: 1.18.4.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
103 |
|
104 |
== Changelog ==
|
105 |
|
106 |
+
= 1.18.4.2 =
|
107 |
+
* Fixed bug in batch_exporter when using PHP 8
|
108 |
+
|
109 |
= 1.18.4.1 =
|
110 |
* Fixed bug in batch_exporter that could create fatal errors on executing
|
111 |
|