Import users from CSV with meta - Version 1.12.6.1

Version Description

  • Plugin is now compatible with plugins that change login url, thanks to @2candela2 (https://wordpress.org/support/topic/make-it-compatible-with-plugins-that-change-login-url/)
Download this release

Release Info

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

Code changes from version 1.12.6 to 1.12.6.1

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.12.6
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.12.6.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
importer.php CHANGED
@@ -556,12 +556,14 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
556
  $body_mail = get_option( "acui_mail_body" );
557
  $subject = get_option( "acui_mail_subject" );
558
 
559
- $body_mail = str_replace( "**loginurl**", "<a href='" . home_url() . "/wp-login.php" . "'>" . home_url() . "/wp-login.php" . "</a>", $body_mail );
560
  $body_mail = str_replace( "**username**", $user_login, $body_mail );
561
  $body_mail = str_replace( "**lostpasswordurl**", wp_lostpassword_url(), $body_mail );
562
 
563
- if( !is_wp_error( $key ) )
564
- $body_mail = str_replace( "**passwordreseturl**", network_site_url( 'wp-login.php?action=rp&key=' . $key . '&login=' . rawurlencode( $user_login ), 'login' ), $body_mail );
 
 
565
 
566
  if( empty( $password ) && !$created )
567
  $password = __( 'Password has not been changed', 'import-users-from-csv-with-meta' );
556
  $body_mail = get_option( "acui_mail_body" );
557
  $subject = get_option( "acui_mail_subject" );
558
 
559
+ $body_mail = str_replace( "**loginurl**", wp_login_url(), $body_mail );
560
  $body_mail = str_replace( "**username**", $user_login, $body_mail );
561
  $body_mail = str_replace( "**lostpasswordurl**", wp_lostpassword_url(), $body_mail );
562
 
563
+ if( !is_wp_error( $key ) ){
564
+ $passwordreseturl = apply_filters( 'acui_email_passwordreseturl', network_site_url( 'wp-login.php?action=rp&key=' . $key . '&login=' . rawurlencode( $user_login ), 'login' ) );
565
+ $body_mail = str_replace( "**passwordreseturl**", $passwordreseturl, $body_mail );
566
+ }
567
 
568
  if( empty( $password ) && !$created )
569
  $password = __( 'Password has not been changed', 'import-users-from-csv-with-meta' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://paypal.me/codection
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.0.3
7
- Stable tag: 1.12.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -74,6 +74,9 @@ Plugin will automatically detect:
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 1.12.6 =
78
  * wpml-config.xml added to improve compatibility with WPML
79
  * Warnings fixed
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.0.3
7
+ Stable tag: 1.12.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
74
 
75
  == Changelog ==
76
 
77
+ = 1.12.6.1 =
78
+ * Plugin is now compatible with plugins that change login url, thanks to @2candela2 (https://wordpress.org/support/topic/make-it-compatible-with-plugins-that-change-login-url/)
79
+
80
  = 1.12.6 =
81
  * wpml-config.xml added to improve compatibility with WPML
82
  * Warnings fixed