Import users from CSV with meta - Version 1.14.3.10

Version Description

  • Changed the way HTML emails are declared to prevent problems with plugins like WP HTML Mail
Download this release

Release Info

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

Code changes from version 1.14.3.9 to 1.14.3.10

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.3.9
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -722,10 +722,6 @@ function acui_get_attachment_id_by_url( $url ) {
722
  return false;
723
  }
724
 
725
- function cod_set_html_content_type() {
726
- return 'text/html';
727
- }
728
-
729
  function acui_return_false(){
730
  return false;
731
  }
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.3.10
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
722
  return false;
723
  }
724
 
 
 
 
 
725
  function acui_return_false(){
726
  return false;
727
  }
importer.php CHANGED
@@ -599,17 +599,14 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
599
  }
600
 
601
  $body_mail = wpautop( $body_mail );
602
- $headers_mail = array();
603
- $headers_mail = apply_filters( 'acui_import_email_headers', $headers_mail, $headers, $data );
604
 
605
  $attachments = array();
606
  $attachment_id = get_option( 'acui_mail_attachment_id' );
607
  if( !empty( $attachment_id ) )
608
  $attachments[] = get_attached_file( $attachment_id );
609
 
610
- add_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
611
  wp_mail( apply_filters( 'acui_import_email_to', $email, $headers, $data ), $subject, $body_mail, $headers_mail );
612
- remove_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
613
  endif;
614
 
615
  endif;
599
  }
600
 
601
  $body_mail = wpautop( $body_mail );
602
+ $headers_mail = apply_filters( 'acui_import_email_headers', array( 'Content-Type: text/html; charset=UTF-8' ), $headers, $data );
 
603
 
604
  $attachments = array();
605
  $attachment_id = get_option( 'acui_mail_attachment_id' );
606
  if( !empty( $attachment_id ) )
607
  $attachments[] = get_attached_file( $attachment_id );
608
 
 
609
  wp_mail( apply_filters( 'acui_import_email_to', $email, $headers, $data ), $subject, $body_mail, $headers_mail );
 
610
  endif;
611
 
612
  endif;
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
7
- Stable tag: 1.14.3.9
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.3.9 =
95
  * Included compatibility with WP User Avatar to import avatar images while the import is being executed, thanks to the support of cshaffstall.com
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
7
+ Stable tag: 1.14.3.10
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.3.10 =
95
+ * Changed the way HTML emails are declared to prevent problems with plugins like WP HTML Mail
96
+
97
  = 1.14.3.9 =
98
  * Included compatibility with WP User Avatar to import avatar images while the import is being executed, thanks to the support of cshaffstall.com
99