Version Description
- Don't hijack non-related form posts
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 6.1.4 |
Comparing to | |
See all releases |
Code changes from version 6.1.3 to 6.1.4
- includes/class-theme-my-login-template.php +2 -2
- includes/class-theme-my-login.php +3 -3
- readme.txt +4 -1
- theme-my-login.php +1 -1
includes/class-theme-my-login-template.php
CHANGED
@@ -523,7 +523,7 @@ class Theme_My_Login_Template {
|
|
523 |
function load_options( $options = array() ) {
|
524 |
$this->options = wp_parse_args( $options, array(
|
525 |
'instance' => '',
|
526 |
-
'default_action' => '
|
527 |
'login_template' => '',
|
528 |
'register_template' => '',
|
529 |
'lostpassword_template' => '',
|
@@ -567,7 +567,7 @@ class Theme_My_Login_Template {
|
|
567 |
function __construct( $options = '' ) {
|
568 |
$this->load_options( $options );
|
569 |
|
570 |
-
$this->action = isset( $this->options['default_action'] ) ? $this->options['default_action'] : '
|
571 |
$this->instance = $this->options['instance'];
|
572 |
if ( $GLOBALS['theme_my_login']->request_instance == $this->instance ) {
|
573 |
$this->is_active = true;
|
523 |
function load_options( $options = array() ) {
|
524 |
$this->options = wp_parse_args( $options, array(
|
525 |
'instance' => '',
|
526 |
+
'default_action' => '',
|
527 |
'login_template' => '',
|
528 |
'register_template' => '',
|
529 |
'lostpassword_template' => '',
|
567 |
function __construct( $options = '' ) {
|
568 |
$this->load_options( $options );
|
569 |
|
570 |
+
$this->action = isset( $this->options['default_action'] ) ? $this->options['default_action'] : '';
|
571 |
$this->instance = $this->options['instance'];
|
572 |
if ( $GLOBALS['theme_my_login']->request_instance == $this->instance ) {
|
573 |
$this->is_active = true;
|
includes/class-theme-my-login.php
CHANGED
@@ -76,7 +76,7 @@ class Theme_My_Login {
|
|
76 |
* @access public
|
77 |
*/
|
78 |
function __construct() {
|
79 |
-
$this->request_action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : '
|
80 |
$this->request_instance = isset( $_REQUEST['instance'] ) ? $_REQUEST['instance'] : '';
|
81 |
|
82 |
$this->init_options();
|
@@ -329,7 +329,7 @@ class Theme_My_Login {
|
|
329 |
if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos( $redirect_to, 'https' ) ) && ( 0 === strpos( $redirect_to, 'http' ) ) )
|
330 |
$secure_cookie = false;
|
331 |
|
332 |
-
if ( $http_post ) {
|
333 |
$this->check_ssl();
|
334 |
|
335 |
// Set a cookie now to see if they are supported by the browser.
|
@@ -341,7 +341,7 @@ class Theme_My_Login {
|
|
341 |
|
342 |
$redirect_to = apply_filters( 'login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user );
|
343 |
|
344 |
-
if (
|
345 |
// If the user can't edit posts, send them to their profile.
|
346 |
if ( !$user->has_cap( 'edit_posts' ) && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) )
|
347 |
$redirect_to = admin_url( 'profile.php' );
|
76 |
* @access public
|
77 |
*/
|
78 |
function __construct() {
|
79 |
+
$this->request_action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
|
80 |
$this->request_instance = isset( $_REQUEST['instance'] ) ? $_REQUEST['instance'] : '';
|
81 |
|
82 |
$this->init_options();
|
329 |
if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos( $redirect_to, 'https' ) ) && ( 0 === strpos( $redirect_to, 'http' ) ) )
|
330 |
$secure_cookie = false;
|
331 |
|
332 |
+
if ( $http_post && isset( $_POST['log'] ) ) {
|
333 |
$this->check_ssl();
|
334 |
|
335 |
// Set a cookie now to see if they are supported by the browser.
|
341 |
|
342 |
$redirect_to = apply_filters( 'login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user );
|
343 |
|
344 |
+
if ( !is_wp_error( $user ) && !$reauth ) {
|
345 |
// If the user can't edit posts, send them to their profile.
|
346 |
if ( !$user->has_cap( 'edit_posts' ) && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) )
|
347 |
$redirect_to = admin_url( 'profile.php' );
|
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: 3.0
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 6.1.
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
@@ -40,6 +40,9 @@ Please visit http://www.jfarthing.com/docs/Theme_My_Login first and then visit h
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 6.1.3 =
|
44 |
* Fix password change error
|
45 |
* Update POT file
|
4 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 6.1.4
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 6.1.4 =
|
44 |
+
* Don't hijack non-related form posts
|
45 |
+
|
46 |
= 6.1.3 =
|
47 |
* Fix password change error
|
48 |
* Update POT file
|
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.1.
|
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.1.4
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|