Version Description
- Problem fixed deleting old CSV files
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.14.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.14.2.5 to 1.14.2.6
- classes/homepage.php +3 -3
- import-users-from-csv-with-meta.php +4 -4
- readme.txt +4 -1
classes/homepage.php
CHANGED
@@ -267,12 +267,12 @@ class ACUI_Homepage{
|
|
267 |
var data = {
|
268 |
'action': 'acui_delete_attachment',
|
269 |
'attach_id': $( this ).attr( "attach_id" ),
|
270 |
-
'
|
271 |
};
|
272 |
|
273 |
$.post(ajaxurl, data, function(response) {
|
274 |
if( response != 1 )
|
275 |
-
alert(
|
276 |
else{
|
277 |
alert( "<?php _e( 'File successfully deleted', 'import-users-from-csv-with-meta' ); ?>" );
|
278 |
document.location.reload();
|
@@ -286,7 +286,7 @@ class ACUI_Homepage{
|
|
286 |
if( answer ){
|
287 |
var data = {
|
288 |
'action': 'acui_bulk_delete_attachment',
|
289 |
-
'
|
290 |
};
|
291 |
|
292 |
$.post(ajaxurl, data, function(response) {
|
267 |
var data = {
|
268 |
'action': 'acui_delete_attachment',
|
269 |
'attach_id': $( this ).attr( "attach_id" ),
|
270 |
+
'security': '<?php echo wp_create_nonce( "codection-security" ); ?>'
|
271 |
};
|
272 |
|
273 |
$.post(ajaxurl, data, function(response) {
|
274 |
if( response != 1 )
|
275 |
+
alert( response );
|
276 |
else{
|
277 |
alert( "<?php _e( 'File successfully deleted', 'import-users-from-csv-with-meta' ); ?>" );
|
278 |
document.location.reload();
|
286 |
if( answer ){
|
287 |
var data = {
|
288 |
'action': 'acui_bulk_delete_attachment',
|
289 |
+
'security': '<?php echo wp_create_nonce( "codection-security" ); ?>'
|
290 |
};
|
291 |
|
292 |
$.post(ajaxurl, data, function(response) {
|
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.
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
@@ -595,15 +595,15 @@ function acui_delete_attachment() {
|
|
595 |
wp_die( __('You are not an adminstrator', 'import-users-from-csv-with-meta' ) );
|
596 |
|
597 |
$attach_id = absint( $_POST['attach_id'] );
|
598 |
-
$mime_type = (string) get_post_mime_type( $
|
599 |
|
600 |
if( $mime_type != 'text/csv' )
|
601 |
-
|
602 |
|
603 |
$result = wp_delete_attachment( $attach_id, true );
|
604 |
|
605 |
if( $result === false )
|
606 |
-
|
607 |
else
|
608 |
echo 1;
|
609 |
|
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.6
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
595 |
wp_die( __('You are not an adminstrator', 'import-users-from-csv-with-meta' ) );
|
596 |
|
597 |
$attach_id = absint( $_POST['attach_id'] );
|
598 |
+
$mime_type = (string) get_post_mime_type( $attach_id );
|
599 |
|
600 |
if( $mime_type != 'text/csv' )
|
601 |
+
_e('This plugin only can delete the type of file it manages, CSV files.', 'import-users-from-csv-with-meta' );
|
602 |
|
603 |
$result = wp_delete_attachment( $attach_id, true );
|
604 |
|
605 |
if( $result === false )
|
606 |
+
_e( 'There were problems deleting the file, please check file permissions', 'import-users-from-csv-with-meta' );
|
607 |
else
|
608 |
echo 1;
|
609 |
|
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.
|
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.5 =
|
95 |
* Problem fixed in cron job
|
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.6
|
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.6 =
|
95 |
+
* Problem fixed deleting old CSV files
|
96 |
+
|
97 |
= 1.14.2.5 =
|
98 |
* Problem fixed in cron job
|
99 |
|