Version Description
- Problem solved converting timestamps when exporting
- If an error raise in the server while exporting, instead only showing the error in the console, we throws an alert to improve user experience
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.18.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.18.2.1 to 1.18.2.3
- assets/export.js +1 -0
- classes/batch_exporter.php +1 -1
- classes/email-options.php +1 -0
- classes/export.php +1 -0
- import-users-from-csv-with-meta.php +2 -3
- readme.txt +8 -1
assets/export.js
CHANGED
@@ -83,6 +83,7 @@
|
|
83 |
}
|
84 |
} ).fail( function( response ) {
|
85 |
window.console.log( response );
|
|
|
86 |
} );
|
87 |
};
|
88 |
|
83 |
}
|
84 |
} ).fail( function( response ) {
|
85 |
window.console.log( response );
|
86 |
+
alert( acui_export_js_object.error_thrown );
|
87 |
} );
|
88 |
};
|
89 |
|
classes/batch_exporter.php
CHANGED
@@ -606,7 +606,7 @@ class ACUI_Batch_Exporter{
|
|
606 |
elseif( strtotime( $value ) ){ // dates in datetime format
|
607 |
return date( $datetime_format, strtotime( $value ) );
|
608 |
}
|
609 |
-
elseif( is_int( $value ) && ( ( $this->is_valid_timestamp( $value ) && strlen( $value ) > 4 ) || in_array( $key, $timestamp_keys) ) ){ // dates in timestamp format
|
610 |
return date( $datetime_format, $value );
|
611 |
}
|
612 |
else{
|
606 |
elseif( strtotime( $value ) ){ // dates in datetime format
|
607 |
return date( $datetime_format, strtotime( $value ) );
|
608 |
}
|
609 |
+
elseif( $this->get_convert_timestamp() && is_int( $value ) && ( ( $this->is_valid_timestamp( $value ) && strlen( $value ) > 4 ) || in_array( $key, $timestamp_keys) ) ){ // dates in timestamp format
|
610 |
return date( $datetime_format, $value );
|
611 |
}
|
612 |
else{
|
classes/email-options.php
CHANGED
@@ -123,6 +123,7 @@ class ACUI_Email_Options{
|
|
123 |
<br/>
|
124 |
<input class="button-primary" type="submit" value="<?php _e( 'Save email template and options', 'import-users-from-csv-with-meta'); ?>" id="save_mail_template_options"/>
|
125 |
<input class="button-primary" type="button" value="<?php _e( 'Send test email', 'import-users-from-csv-with-meta'); ?>" id="send_test_email" title="<?php _e( 'This test email will be sent to the current user', 'import-users-from-csv-with-meta'); ?>"/>
|
|
|
126 |
|
127 |
<?php wp_nonce_field( 'codection-security', 'security' ); ?>
|
128 |
|
123 |
<br/>
|
124 |
<input class="button-primary" type="submit" value="<?php _e( 'Save email template and options', 'import-users-from-csv-with-meta'); ?>" id="save_mail_template_options"/>
|
125 |
<input class="button-primary" type="button" value="<?php _e( 'Send test email', 'import-users-from-csv-with-meta'); ?>" id="send_test_email" title="<?php _e( 'This test email will be sent to the current user', 'import-users-from-csv-with-meta'); ?>"/>
|
126 |
+
<?php _e( 'If you send a test email, no wildcards will be replaced becuase when you test, we have no data to replace.', 'import-users-from-csv-with-meta' ); ?>
|
127 |
|
128 |
<?php wp_nonce_field( 'codection-security', 'security' ); ?>
|
129 |
|
classes/export.php
CHANGED
@@ -30,6 +30,7 @@ class ACUI_Exporter{
|
|
30 |
'step' => __( 'Step', 'import-users-from-csv-with-meta' ),
|
31 |
'of_approximately' => __( 'of approximately', 'import-users-from-csv-with-meta' ),
|
32 |
'steps' => __( 'steps', 'import-users-from-csv-with-meta' ),
|
|
|
33 |
) );
|
34 |
}
|
35 |
|
30 |
'step' => __( 'Step', 'import-users-from-csv-with-meta' ),
|
31 |
'of_approximately' => __( 'of approximately', 'import-users-from-csv-with-meta' ),
|
32 |
'steps' => __( 'steps', 'import-users-from-csv-with-meta' ),
|
33 |
+
'error_thrown' => __( 'Error thrown in the server, we cannot continue. Please check console to see full details about the error.', 'import-users-from-csv-with-meta' ),
|
34 |
) );
|
35 |
}
|
36 |
|
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.2.
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
@@ -11,11 +11,10 @@ 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' ) )
|
16 |
exit;
|
17 |
|
18 |
-
define( 'ACUI_VERSION', '1.18.2.
|
19 |
|
20 |
class ImportExportUsersCustomers{
|
21 |
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.2.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' ) )
|
15 |
exit;
|
16 |
|
17 |
+
define( 'ACUI_VERSION', '1.18.2.3' );
|
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.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -103,6 +103,13 @@ Plugin will automatically detect:
|
|
103 |
|
104 |
== Changelog ==
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
= 1.18.2.1 =
|
107 |
* Tested up to 5.8.1
|
108 |
* Fixed problem with roles export
|
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.2.3
|
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.2.3 =
|
107 |
+
* Problem solved converting timestamps when exporting
|
108 |
+
* If an error raise in the server while exporting, instead only showing the error in the console, we throws an alert to improve user experience
|
109 |
+
|
110 |
+
= 1.18.2.2 =
|
111 |
+
* Included a note to prevent misunderstandings when testing emails
|
112 |
+
|
113 |
= 1.18.2.1 =
|
114 |
* Tested up to 5.8.1
|
115 |
* Fixed problem with roles export
|