Version Description
- Fix login reauth bug in redirection module
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 6.0.3 |
Comparing to | |
See all releases |
Code changes from version 6.0.2 to 6.0.3
- modules/custom-redirection/custom-redirection.php +5 -1
- readme.txt +4 -1
- theme-my-login.php +1 -1
modules/custom-redirection/custom-redirection.php
CHANGED
@@ -49,9 +49,12 @@ class Theme_My_Login_Custom_Redirection extends Theme_My_Login_Module {
|
|
49 |
if ( !$http_referer = wp_get_original_referer() )
|
50 |
$http_referer = wp_get_referer();
|
51 |
|
|
|
|
|
|
|
52 |
// Make sure $user object exists and is a WP_User instance
|
53 |
if ( !is_wp_error( $user ) && is_a( $user, 'WP_User' ) ) {
|
54 |
-
$redirection = array();
|
55 |
foreach ( (array) $user->roles as $role ) {
|
56 |
if ( isset( $this->theme_my_login->options['redirection'][$role] ) ) {
|
57 |
$redirection = $this->theme_my_login->options['redirection'][$role];
|
@@ -99,6 +102,7 @@ class Theme_My_Login_Custom_Redirection extends Theme_My_Login_Module {
|
|
99 |
// Determine the correct referer
|
100 |
if ( !$http_referer = wp_get_original_referer() )
|
101 |
$http_referer = wp_get_referer();
|
|
|
102 |
// Remove some arguments that may be present and shouldn't be
|
103 |
$http_referer = remove_query_arg( array( 'instance', 'action', 'checkemail', 'error', 'loggedout', 'registered', 'redirect_to', 'updated', 'key', '_wpnonce' ), $http_referer );
|
104 |
|
49 |
if ( !$http_referer = wp_get_original_referer() )
|
50 |
$http_referer = wp_get_referer();
|
51 |
|
52 |
+
// Remove some arguments that may be present and shouldn't be
|
53 |
+
$http_referer = remove_query_arg( array( 'instance', 'action', 'checkemail', 'error', 'loggedout', 'registered', 'redirect_to', 'updated', 'key', '_wpnonce', 'reauth' ), $http_referer );
|
54 |
+
|
55 |
// Make sure $user object exists and is a WP_User instance
|
56 |
if ( !is_wp_error( $user ) && is_a( $user, 'WP_User' ) ) {
|
57 |
+
$redirection = array( 'login_type' => 'default' );
|
58 |
foreach ( (array) $user->roles as $role ) {
|
59 |
if ( isset( $this->theme_my_login->options['redirection'][$role] ) ) {
|
60 |
$redirection = $this->theme_my_login->options['redirection'][$role];
|
102 |
// Determine the correct referer
|
103 |
if ( !$http_referer = wp_get_original_referer() )
|
104 |
$http_referer = wp_get_referer();
|
105 |
+
|
106 |
// Remove some arguments that may be present and shouldn't be
|
107 |
$http_referer = remove_query_arg( array( 'instance', 'action', 'checkemail', 'error', 'loggedout', 'registered', 'redirect_to', 'updated', 'key', '_wpnonce' ), $http_referer );
|
108 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.jfarthing.com/donate
|
|
4 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0.1
|
7 |
-
Stable tag: 6.0.
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
@@ -40,6 +40,9 @@ Please visit http://www.jfarthing.com/support if you have any questions, concern
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 6.0.2 =
|
44 |
* Fix Login page creation during install
|
45 |
* Fix template tag argument parsing
|
4 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0.1
|
7 |
+
Stable tag: 6.0.3
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 6.0.3 =
|
44 |
+
* Fix login reauth bug in redirection module
|
45 |
+
|
46 |
= 6.0.2 =
|
47 |
* Fix Login page creation during install
|
48 |
* Fix template tag argument parsing
|
theme-my-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
-
Version: 6.0.
|
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/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
+
Version: 6.0.3
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|