Version Description
- Fixed a bug that didn't allow custom registration message to be displayed
- Fixed a few PHP unset variable notice's with a call to isset()
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- includes/wp-login-actions.php +1 -1
- includes/wp-login-forms.php +3 -3
- readme.txt +4 -0
- theme-my-login.php +4 -4
includes/wp-login-actions.php
CHANGED
@@ -37,7 +37,7 @@ if ( SITECOOKIEPATH != COOKIEPATH )
|
|
37 |
$http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
|
38 |
switch ($action) {
|
39 |
case 'logout' :
|
40 |
-
if ($wp_version >= '2.
|
41 |
check_admin_referer('log-out');
|
42 |
wp_logout();
|
43 |
|
37 |
$http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
|
38 |
switch ($action) {
|
39 |
case 'logout' :
|
40 |
+
if ($wp_version >= '2.7')
|
41 |
check_admin_referer('log-out');
|
42 |
wp_logout();
|
43 |
|
includes/wp-login-forms.php
CHANGED
@@ -66,13 +66,13 @@ default :
|
|
66 |
if ( isset( $_REQUEST['redirect_to'] ) ) {
|
67 |
$redirect_to = $_REQUEST['redirect_to'];
|
68 |
// Redirect to https if user wants ssl
|
69 |
-
if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
|
70 |
$redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
|
71 |
} else {
|
72 |
$redirect_to = admin_url();
|
73 |
}
|
74 |
|
75 |
-
$redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);
|
76 |
|
77 |
// Clear errors if loggedout is set.
|
78 |
if ( !empty($_GET['loggedout']) )
|
@@ -87,7 +87,7 @@ default :
|
|
87 |
elseif ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] ) $login_errors->add('registerdisabled', __('User registration is currently not allowed.', 'theme-my-login'));
|
88 |
elseif ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] ) $login_errors->add('confirm', __('Check your e-mail for the confirmation link.', 'theme-my-login'), 'message');
|
89 |
elseif ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] ) $login_errors->add('newpass', __('Check your e-mail for your new password.', 'theme-my-login'), 'message');
|
90 |
-
elseif ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] ) $login_errors->add('registered',
|
91 |
|
92 |
login_header('', $login_errors);
|
93 |
|
66 |
if ( isset( $_REQUEST['redirect_to'] ) ) {
|
67 |
$redirect_to = $_REQUEST['redirect_to'];
|
68 |
// Redirect to https if user wants ssl
|
69 |
+
if ( isset($secure_cookie) && false !== strpos($redirect_to, 'wp-admin') )
|
70 |
$redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
|
71 |
} else {
|
72 |
$redirect_to = admin_url();
|
73 |
}
|
74 |
|
75 |
+
$redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', isset( $user ) ? $user : '');
|
76 |
|
77 |
// Clear errors if loggedout is set.
|
78 |
if ( !empty($_GET['loggedout']) )
|
87 |
elseif ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] ) $login_errors->add('registerdisabled', __('User registration is currently not allowed.', 'theme-my-login'));
|
88 |
elseif ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] ) $login_errors->add('confirm', __('Check your e-mail for the confirmation link.', 'theme-my-login'), 'message');
|
89 |
elseif ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] ) $login_errors->add('newpass', __('Check your e-mail for your new password.', 'theme-my-login'), 'message');
|
90 |
+
elseif ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] ) $login_errors->add('registered', $this->GetOption('registered_complete'), 'message');
|
91 |
|
92 |
login_header('', $login_errors);
|
93 |
|
readme.txt
CHANGED
@@ -26,6 +26,10 @@ None yet. Please visit http://www.jfarthing.com/forum for any support!
|
|
26 |
|
27 |
== Changelog ==
|
28 |
|
|
|
|
|
|
|
|
|
29 |
= 3.0.1 =
|
30 |
* Fixed a bug that caused a redirection loop when trying to access wp-login.php
|
31 |
* Fixed a bug that broke the widget admin interface
|
26 |
|
27 |
== Changelog ==
|
28 |
|
29 |
+
= 3.0.2 =
|
30 |
+
* Fixed a bug that didn't allow custom registration message to be displayed
|
31 |
+
* Fixed a few PHP unset variable notice's with a call to isset()
|
32 |
+
|
33 |
= 3.0.1 =
|
34 |
* Fixed a bug that caused a redirection loop when trying to access wp-login.php
|
35 |
* Fixed a bug that broke the widget admin interface
|
theme-my-login.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/wordpress-plugins/theme-my-login-plugin
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
-
Version: 3.0.
|
7 |
-
Author:
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
*/
|
10 |
|
11 |
global $wp_version;
|
12 |
|
13 |
-
if ($wp_version < '2.
|
14 |
if ( !defined('WP_CONTENT_DIR') )
|
15 |
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
16 |
if ( !defined('WP_CONTENT_URL') )
|
@@ -26,7 +26,7 @@ if ($wp_version < '2.6') {
|
|
26 |
if (!class_exists('ThemeMyLogin')) {
|
27 |
class ThemeMyLogin {
|
28 |
|
29 |
-
var $version = '3.0.
|
30 |
var $options = array();
|
31 |
var $permalink = '';
|
32 |
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/wordpress-plugins/theme-my-login-plugin
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
+
Version: 3.0.2
|
7 |
+
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
*/
|
10 |
|
11 |
global $wp_version;
|
12 |
|
13 |
+
if ($wp_version < '2.7') {
|
14 |
if ( !defined('WP_CONTENT_DIR') )
|
15 |
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
16 |
if ( !defined('WP_CONTENT_URL') )
|
26 |
if (!class_exists('ThemeMyLogin')) {
|
27 |
class ThemeMyLogin {
|
28 |
|
29 |
+
var $version = '3.0.2';
|
30 |
var $options = array();
|
31 |
var $permalink = '';
|
32 |
|