Version Description
- Fix sending of custom emails when creating a user
- Fix sending of custom emails on user activation/approval
- Fix translation loading logic
- Require WordPress 4.4
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 6.4.3 |
Comparing to | |
See all releases |
Code changes from version 6.4.2 to 6.4.3
- includes/class-theme-my-login.php +7 -10
- modules/custom-email/custom-email.php +10 -9
- readme.txt +8 -2
- theme-my-login.php +1 -1
includes/class-theme-my-login.php
CHANGED
@@ -21,7 +21,7 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
21 |
* @since 6.3.2
|
22 |
* @const string
|
23 |
*/
|
24 |
-
const VERSION = '6.4.
|
25 |
|
26 |
/**
|
27 |
* Holds options key
|
@@ -1099,20 +1099,17 @@ if(typeof wpOnload=='function')wpOnload()
|
|
1099 |
private static function load_textdomain() {
|
1100 |
|
1101 |
// Traditional WordPress plugin locale filter
|
1102 |
-
$locale = apply_filters( 'plugin_locale',
|
1103 |
$mofile = sprintf( 'theme-my-login-%s.mo', $locale );
|
1104 |
|
1105 |
// Look in global /wp-content/languages/theme-my-login folder
|
1106 |
-
|
1107 |
-
return load_textdomain( 'theme-my-login', WP_LANG_DIR . '/theme-my-login/' . $mofile );
|
1108 |
|
1109 |
-
// Look in local /wp-content/plugins/theme-my-login/
|
1110 |
-
|
1111 |
-
return load_textdomain( 'theme-my-login', WP_PLUGIN_DIR . '/theme-my-login/language/' . $mofile );
|
1112 |
-
}
|
1113 |
|
1114 |
-
//
|
1115 |
-
|
1116 |
}
|
1117 |
|
1118 |
/**
|
21 |
* @since 6.3.2
|
22 |
* @const string
|
23 |
*/
|
24 |
+
const VERSION = '6.4.3';
|
25 |
|
26 |
/**
|
27 |
* Holds options key
|
1099 |
private static function load_textdomain() {
|
1100 |
|
1101 |
// Traditional WordPress plugin locale filter
|
1102 |
+
$locale = apply_filters( 'plugin_locale', get_locale(), 'theme-my-login' );
|
1103 |
$mofile = sprintf( 'theme-my-login-%s.mo', $locale );
|
1104 |
|
1105 |
// Look in global /wp-content/languages/theme-my-login folder
|
1106 |
+
load_textdomain( 'theme-my-login', WP_LANG_DIR . '/theme-my-login/' . $mofile );
|
|
|
1107 |
|
1108 |
+
// Look in local /wp-content/plugins/theme-my-login/languages folder
|
1109 |
+
load_textdomain( 'theme-my-login', WP_PLUGIN_DIR . '/theme-my-login/languages/' . $mofile );
|
|
|
|
|
1110 |
|
1111 |
+
// Look in global /wp-content/languages/plugins folder
|
1112 |
+
load_plugin_textdomain( 'theme-my-login' );
|
1113 |
}
|
1114 |
|
1115 |
/**
|
modules/custom-email/custom-email.php
CHANGED
@@ -116,15 +116,17 @@ class Theme_My_Login_Custom_Email extends Theme_My_Login_Abstract {
|
|
116 |
add_filter( 'wp_mail_from_name', array( &$this, 'mail_from_name_filter' ) );
|
117 |
add_filter( 'wp_mail_content_type', array( &$this, 'mail_content_type_filter' ) );
|
118 |
|
119 |
-
add_action( 'retrieve_password',
|
120 |
-
add_action( 'password_reset',
|
121 |
-
add_action( '
|
122 |
|
123 |
-
remove_action( 'register_new_user',
|
124 |
-
remove_action( '
|
|
|
125 |
|
126 |
-
add_action( 'register_new_user',
|
127 |
-
add_action( '
|
|
|
128 |
|
129 |
add_action( 'register_post', array( &$this, 'apply_user_moderation_notification_filters' ) );
|
130 |
add_action( 'tml_user_activation_resend', array( &$this, 'apply_user_moderation_notification_filters' ) );
|
@@ -889,9 +891,8 @@ class Theme_My_Login_Custom_Email extends Theme_My_Login_Abstract {
|
|
889 |
* @access public
|
890 |
*
|
891 |
* @param object $user User object
|
892 |
-
* @param string $newpass New password
|
893 |
*/
|
894 |
-
public function password_change_notification(
|
895 |
global $current_site;
|
896 |
|
897 |
$to = apply_filters( 'password_change_notification_mail_to', get_option( 'admin_email' ) );
|
116 |
add_filter( 'wp_mail_from_name', array( &$this, 'mail_from_name_filter' ) );
|
117 |
add_filter( 'wp_mail_content_type', array( &$this, 'mail_content_type_filter' ) );
|
118 |
|
119 |
+
add_action( 'retrieve_password', array( &$this, 'apply_retrieve_pass_filters' ) );
|
120 |
+
add_action( 'password_reset', array( &$this, 'apply_password_reset_filters' ) );
|
121 |
+
add_action( 'tml_new_user_notification', array( &$this, 'apply_new_user_filters' ) );
|
122 |
|
123 |
+
remove_action( 'register_new_user', 'wp_send_new_user_notifications' );
|
124 |
+
remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );
|
125 |
+
remove_action( 'after_password_reset', 'wp_password_change_notification' );
|
126 |
|
127 |
+
add_action( 'register_new_user', array( &$this, 'new_user_notification' ) );
|
128 |
+
add_action( 'edit_user_created_user', array( &$this, 'new_user_notification' ), 10, 2 );
|
129 |
+
add_action( 'after_password_reset', array( &$this, 'password_change_notification' ) );
|
130 |
|
131 |
add_action( 'register_post', array( &$this, 'apply_user_moderation_notification_filters' ) );
|
132 |
add_action( 'tml_user_activation_resend', array( &$this, 'apply_user_moderation_notification_filters' ) );
|
891 |
* @access public
|
892 |
*
|
893 |
* @param object $user User object
|
|
|
894 |
*/
|
895 |
+
public function password_change_notification( $user ) {
|
896 |
global $current_site;
|
897 |
|
898 |
$to = apply_filters( 'password_change_notification_mail_to', get_option( 'admin_email' ) );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 6.4.
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
@@ -48,7 +48,7 @@ Visit yoursite.com/wp-login.php.
|
|
48 |
|
49 |
= What happened to the language folder? =
|
50 |
|
51 |
-
As of version 6.3, Theme My Login no longer ships with translation files. Translations will be available at http://translate.
|
52 |
|
53 |
= How do I obtain additional assistance? =
|
54 |
|
@@ -57,6 +57,12 @@ Please visit http://www.jfarthing.com/development/theme-my-login.
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
= 6.4.2 =
|
61 |
* Fix deprecated function notices
|
62 |
* Deprecate "tml_user_password_changed" hook in favor of "after_password_reset"
|
4 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 6.4.3
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
48 |
|
49 |
= What happened to the language folder? =
|
50 |
|
51 |
+
As of version 6.3, Theme My Login no longer ships with translation files. Translations will be available at http://translate.wordpress.org.
|
52 |
|
53 |
= How do I obtain additional assistance? =
|
54 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 6.4.3 =
|
61 |
+
* Fix sending of custom emails when creating a user
|
62 |
+
* Fix sending of custom emails on user activation/approval
|
63 |
+
* Fix translation loading logic
|
64 |
+
* Require WordPress 4.4
|
65 |
+
|
66 |
= 6.4.2 =
|
67 |
* Fix deprecated function notices
|
68 |
* Deprecate "tml_user_password_changed" hook in favor of "after_password_reset"
|
theme-my-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
-
Version: 6.4.
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
+
Version: 6.4.3
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|