Version Description
- Fix PHP 8 notices
- Fix wp_sensitive_page_meta() deprecated notice in WP 5.7+
- Update password reset button text for WP 5.7+
- Add
lostpassword_user_data
filter
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 7.1.3 |
Comparing to | |
See all releases |
Code changes from version 7.1.2 to 7.1.3
- admin/class-theme-my-login-admin.php +0 -14
- includes/class-theme-my-login.php +0 -14
- includes/compat.php +3 -0
- includes/forms.php +1 -1
- includes/functions.php +8 -1
- readme.txt +7 -1
- theme-my-login.php +2 -2
admin/class-theme-my-login-admin.php
CHANGED
@@ -141,18 +141,4 @@ final class Theme_My_Login_Admin {
|
|
141 |
*/
|
142 |
do_action( 'tml_admin_init', $this );
|
143 |
}
|
144 |
-
|
145 |
-
/**
|
146 |
-
* Don't allow cloning.
|
147 |
-
*
|
148 |
-
* @since 7.0
|
149 |
-
*/
|
150 |
-
private function __clone() {}
|
151 |
-
|
152 |
-
/**
|
153 |
-
* Don't allow unserialization.
|
154 |
-
*
|
155 |
-
* @since 7.0
|
156 |
-
*/
|
157 |
-
private function __wakeup() {}
|
158 |
}
|
141 |
*/
|
142 |
do_action( 'tml_admin_init', $this );
|
143 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
}
|
includes/class-theme-my-login.php
CHANGED
@@ -359,20 +359,6 @@ final class Theme_My_Login {
|
|
359 |
register_deactivation_hook( $plugin_file, array( $this, 'deactivate' ) );
|
360 |
}
|
361 |
|
362 |
-
/**
|
363 |
-
* Don't allow cloning.
|
364 |
-
*
|
365 |
-
* @since 7.0
|
366 |
-
*/
|
367 |
-
private function __clone() {}
|
368 |
-
|
369 |
-
/**
|
370 |
-
* Don't allow unserialization.
|
371 |
-
*
|
372 |
-
* @since 7.0
|
373 |
-
*/
|
374 |
-
private function __wakeup() {}
|
375 |
-
|
376 |
/**
|
377 |
* Handle some deprecated methods that other plugins use.
|
378 |
*
|
359 |
register_deactivation_hook( $plugin_file, array( $this, 'deactivate' ) );
|
360 |
}
|
361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
/**
|
363 |
* Handle some deprecated methods that other plugins use.
|
364 |
*
|
includes/compat.php
CHANGED
@@ -33,6 +33,9 @@ function tml_retrieve_password() {
|
|
33 |
$user_data = get_user_by( 'login', $login );
|
34 |
}
|
35 |
|
|
|
|
|
|
|
36 |
/** This action is documented in wp-login.php */
|
37 |
do_action( 'lostpassword_post', $errors, $user_data );
|
38 |
|
33 |
$user_data = get_user_by( 'login', $login );
|
34 |
}
|
35 |
|
36 |
+
/** Tis filter is documented in wp-login.php */
|
37 |
+
$user_data = apply_filters( 'lostpassword_user_data', $user_data, $errors );
|
38 |
+
|
39 |
/** This action is documented in wp-login.php */
|
40 |
do_action( 'lostpassword_post', $errors, $user_data );
|
41 |
|
includes/forms.php
CHANGED
@@ -290,7 +290,7 @@ function tml_register_password_reset_form() {
|
|
290 |
|
291 |
tml_add_form_field( 'resetpass', 'submit', array(
|
292 |
'type' => 'submit',
|
293 |
-
'value' => __( '
|
294 |
'priority' => 20,
|
295 |
) );
|
296 |
|
290 |
|
291 |
tml_add_form_field( 'resetpass', 'submit', array(
|
292 |
'type' => 'submit',
|
293 |
+
'value' => __( 'Save Password' ),
|
294 |
'priority' => 20,
|
295 |
) );
|
296 |
|
includes/functions.php
CHANGED
@@ -289,6 +289,8 @@ function tml_enqueue_scripts() {
|
|
289 |
* @since 7.0.13
|
290 |
*/
|
291 |
function tml_do_login_head() {
|
|
|
|
|
292 |
if ( ! tml_is_action() ) {
|
293 |
return;
|
294 |
}
|
@@ -297,7 +299,12 @@ function tml_do_login_head() {
|
|
297 |
remove_action( 'login_head', 'wp_print_head_scripts', 9 );
|
298 |
|
299 |
// Don't index TML actions
|
300 |
-
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
/** This action is documented in wp-login.php */
|
303 |
do_action( 'login_head' );
|
289 |
* @since 7.0.13
|
290 |
*/
|
291 |
function tml_do_login_head() {
|
292 |
+
global $wp_version;
|
293 |
+
|
294 |
if ( ! tml_is_action() ) {
|
295 |
return;
|
296 |
}
|
299 |
remove_action( 'login_head', 'wp_print_head_scripts', 9 );
|
300 |
|
301 |
// Don't index TML actions
|
302 |
+
if ( version_compare( $wp_version, '5.7', '>=' ) ) {
|
303 |
+
add_filter( 'wp_robots', 'wp_robots_sensitive_page' );
|
304 |
+
add_action( 'login_head', 'wp_strict_cross_origin_referrer' );
|
305 |
+
} else {
|
306 |
+
add_action( 'login_head', 'wp_sensitive_page_meta' );
|
307 |
+
}
|
308 |
|
309 |
/** This action is documented in wp-login.php */
|
310 |
do_action( 'login_head' );
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: thememylogin, jfarthing84
|
3 |
Tags: login, register, password, branding, customize, widget, wp-login, wp-login.php
|
4 |
Requires at least: 5.4
|
5 |
-
Tested up to: 5.
|
6 |
Stable tag: trunk
|
7 |
|
8 |
The ultimate login branding solution! Theme My Login offers matchless customization of your WordPress user experience!
|
@@ -59,6 +59,12 @@ Report bugs, suggest ideas and participate in development at [GitHub](https://gi
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= 7.1.2 =
|
63 |
* Fix site crashing on Bluehost
|
64 |
* Add requester IP address to password reset emails
|
2 |
Contributors: thememylogin, jfarthing84
|
3 |
Tags: login, register, password, branding, customize, widget, wp-login, wp-login.php
|
4 |
Requires at least: 5.4
|
5 |
+
Tested up to: 5.7
|
6 |
Stable tag: trunk
|
7 |
|
8 |
The ultimate login branding solution! Theme My Login offers matchless customization of your WordPress user experience!
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 7.1.3 =
|
63 |
+
* Fix PHP 8 notices
|
64 |
+
* Fix wp_sensitive_page_meta() deprecated notice in WP 5.7+
|
65 |
+
* Update password reset button text for WP 5.7+
|
66 |
+
* Add `lostpassword_user_data` filter
|
67 |
+
|
68 |
= 7.1.2 =
|
69 |
* Fix site crashing on Bluehost
|
70 |
* Add requester IP address to password reset emails
|
theme-my-login.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
Plugin Name: Theme My Login
|
11 |
Plugin URI: https://thememylogin.com
|
12 |
Description: Creates an alternate login, registration and password recovery experience within your theme.
|
13 |
-
Version: 7.1.
|
14 |
Author: Theme My Login
|
15 |
Author URI: https://thememylogin.com
|
16 |
License: GPLv2
|
@@ -24,7 +24,7 @@ Network: true
|
|
24 |
*
|
25 |
* @since 7.0
|
26 |
*/
|
27 |
-
define( 'THEME_MY_LOGIN_VERSION', '7.1.
|
28 |
|
29 |
/**
|
30 |
* Stores the path to TML.
|
10 |
Plugin Name: Theme My Login
|
11 |
Plugin URI: https://thememylogin.com
|
12 |
Description: Creates an alternate login, registration and password recovery experience within your theme.
|
13 |
+
Version: 7.1.3
|
14 |
Author: Theme My Login
|
15 |
Author URI: https://thememylogin.com
|
16 |
License: GPLv2
|
24 |
*
|
25 |
* @since 7.0
|
26 |
*/
|
27 |
+
define( 'THEME_MY_LOGIN_VERSION', '7.1.3' );
|
28 |
|
29 |
/**
|
30 |
* Stores the path to TML.
|