Import users from CSV with meta - Version 1.15.0.1

Version Description

  • Only users who can create users, can export them
Download this release

Release Info

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

Code changes from version 1.15 to 1.15.0.1

classes/email-templates.php CHANGED
@@ -90,7 +90,7 @@ class ACUI_Email_Template{
90
  function refresh_enable_email_templates(){
91
  check_ajax_referer( 'codection-security', 'security' );
92
  update_option( 'acui_enable_email_templates', ( $_POST[ 'enable' ] == "true" ) );
93
- die();
94
  }
95
 
96
  function email_template_selected(){
@@ -106,7 +106,7 @@ class ACUI_Email_Template{
106
  'attachment_url' => wp_get_attachment_url( $attachment_id ),
107
  ) );
108
 
109
- die();
110
  }
111
 
112
  function add_meta_boxes(){
90
  function refresh_enable_email_templates(){
91
  check_ajax_referer( 'codection-security', 'security' );
92
  update_option( 'acui_enable_email_templates', ( $_POST[ 'enable' ] == "true" ) );
93
+ wp_die();
94
  }
95
 
96
  function email_template_selected(){
106
  'attachment_url' => wp_get_attachment_url( $attachment_id ),
107
  ) );
108
 
109
+ wp_die();
110
  }
111
 
112
  function add_meta_boxes(){
classes/export.php CHANGED
@@ -37,6 +37,9 @@ class ACUI_Exporter{
37
  function export_users_csv(){
38
  check_ajax_referer( 'codection-security', 'security' );
39
 
 
 
 
40
  $data = array();
41
  $row = array();
42
 
@@ -101,7 +104,7 @@ class ACUI_Exporter{
101
 
102
  unlink( $this->path_csv );
103
 
104
- die();
105
  }
106
 
107
  function get_user_meta_key() {
37
  function export_users_csv(){
38
  check_ajax_referer( 'codection-security', 'security' );
39
 
40
+ if( !current_user_can( 'create_users' ) )
41
+ wp_die( __( 'Only users who are able to create users can export them.', 'import-users-from-csv-with-meta' ) );
42
+
43
  $data = array();
44
  $row = array();
45
 
104
 
105
  unlink( $this->path_csv );
106
 
107
+ wp_die();
108
  }
109
 
110
  function get_user_meta_key() {
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.15
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
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.15.0.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
include/shortcode-frontend.php CHANGED
@@ -4,7 +4,7 @@ function acui_frontend() {
4
  ob_start();
5
 
6
  if( !current_user_can( 'create_users' ) )
7
- die( __( 'Only users who are able to create users can manage this form.', 'import-users-from-csv-with-meta' ) );
8
 
9
  if ( $_FILES && !empty( $_POST ) ) {
10
  if ( !wp_verify_nonce( $_POST['security'], 'codection-security' ) ){
4
  ob_start();
5
 
6
  if( !current_user_can( 'create_users' ) )
7
+ wp_die( __( 'Only users who are able to create users can manage this form.', 'import-users-from-csv-with-meta' ) );
8
 
9
  if ( $_FILES && !empty( $_POST ) ) {
10
  if ( !wp_verify_nonce( $_POST['security'], 'codection-security' ) ){
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.3.2
7
- Stable tag: 1.15
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.15 =
95
  * Export option included
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.3.2
7
+ Stable tag: 1.15.0.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.15.0.1 =
95
+ * Only users who can create users, can export them
96
+
97
  = 1.15 =
98
  * Export option included
99