Version Description
- Fixed problem after 1.18 when exporting users
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.18.1 |
Comparing to | |
See all releases |
Code changes from version 1.18 to 1.18.1
- classes/batch_exporter.php +18 -1
- import-users-from-csv-with-meta.php +1 -1
- readme.txt +4 -1
classes/batch_exporter.php
CHANGED
@@ -266,6 +266,23 @@ class ACUI_Batch_Exporter{
|
|
266 |
}
|
267 |
}
|
268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
function send_headers() {
|
270 |
if ( function_exists( 'gc_enable' ) ) {
|
271 |
gc_enable();
|
@@ -278,7 +295,7 @@ class ACUI_Batch_Exporter{
|
|
278 |
@ini_set( 'output_handler', '' );
|
279 |
ignore_user_abort( true );
|
280 |
$this->set_time_limit( 0 );
|
281 |
-
|
282 |
header( 'Content-Type: text/csv; charset=utf-8' );
|
283 |
header( 'Content-Disposition: attachment; filename=' . $this->get_filename() );
|
284 |
header( 'Pragma: no-cache' );
|
266 |
}
|
267 |
}
|
268 |
|
269 |
+
function maybe_define_constant( $name, $value ) {
|
270 |
+
if ( ! defined( $name ) ) {
|
271 |
+
define( $name, $value );
|
272 |
+
}
|
273 |
+
}
|
274 |
+
|
275 |
+
function set_nocache_constants() {
|
276 |
+
$this->maybe_define_constant( 'DONOTCACHEPAGE', true );
|
277 |
+
$this->maybe_define_constant( 'DONOTCACHEOBJECT', true );
|
278 |
+
$this->maybe_define_constant( 'DONOTCACHEDB', true );
|
279 |
+
}
|
280 |
+
|
281 |
+
function send_nocache_headers() {
|
282 |
+
$this->set_nocache_constants();
|
283 |
+
nocache_headers();
|
284 |
+
}
|
285 |
+
|
286 |
function send_headers() {
|
287 |
if ( function_exists( 'gc_enable' ) ) {
|
288 |
gc_enable();
|
295 |
@ini_set( 'output_handler', '' );
|
296 |
ignore_user_abort( true );
|
297 |
$this->set_time_limit( 0 );
|
298 |
+
$this->send_nocache_headers();
|
299 |
header( 'Content-Type: text/csv; charset=utf-8' );
|
300 |
header( 'Content-Disposition: attachment; filename=' . $this->get_filename() );
|
301 |
header( 'Pragma: no-cache' );
|
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
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
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.1
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
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
|
7 |
-
Stable tag: 1.18
|
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 =
|
107 |
* Export in backend and frontend now works using step by step process using client calls to avoid gateway timeouts and other kind of timing limits in very long process
|
108 |
* Addon for WP User Manager improved to avoid redirection loop
|
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
|
7 |
+
Stable tag: 1.18.1
|
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.1 =
|
107 |
+
* Fixed problem after 1.18 when exporting users
|
108 |
+
|
109 |
= 1.18 =
|
110 |
* Export in backend and frontend now works using step by step process using client calls to avoid gateway timeouts and other kind of timing limits in very long process
|
111 |
* Addon for WP User Manager improved to avoid redirection loop
|