Version Description
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 5.1.2 |
Comparing to | |
See all releases |
Code changes from version 5.1.1 to 5.1.2
- includes/hook-functions.php +8 -0
- includes/login-actions.php +6 -6
- readme.txt +2 -2
- theme-my-login.php +1 -1
includes/hook-functions.php
CHANGED
@@ -2,8 +2,16 @@
|
|
2 |
|
3 |
function wdbj_tml_the_title($title, $post_id = '') {
|
4 |
global $wdbj_tml_doing_pagelist;
|
|
|
5 |
if ( is_admin() && !defined('IS_PROFILE_PAGE') )
|
6 |
return $title;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
if ( wdbj_tml_get_option('page_id') == $post_id ) {
|
8 |
if ( $wdbj_tml_doing_pagelist ) {
|
9 |
$title = is_user_logged_in() ? __('Log Out', 'theme-my-login') : __('Log In', 'theme-my-login');
|
2 |
|
3 |
function wdbj_tml_the_title($title, $post_id = '') {
|
4 |
global $wdbj_tml_doing_pagelist;
|
5 |
+
|
6 |
if ( is_admin() && !defined('IS_PROFILE_PAGE') )
|
7 |
return $title;
|
8 |
+
|
9 |
+
// No post ID until WP 3.0!
|
10 |
+
if ( empty( $post_id ) ) {
|
11 |
+
global $wpdb;
|
12 |
+
$post_id = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_title = %s", $title ) );
|
13 |
+
}
|
14 |
+
|
15 |
if ( wdbj_tml_get_option('page_id') == $post_id ) {
|
16 |
if ( $wdbj_tml_doing_pagelist ) {
|
17 |
$title = is_user_logged_in() ? __('Log Out', 'theme-my-login') : __('Log In', 'theme-my-login');
|
includes/login-actions.php
CHANGED
@@ -121,13 +121,13 @@ switch ( $action ) {
|
|
121 |
if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
|
122 |
$secure_cookie = false;
|
123 |
|
124 |
-
|
125 |
-
$user = wp_signon('', $secure_cookie);
|
126 |
-
|
127 |
-
$redirect_to = apply_filters('login_redirect', $redirect_to, isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : '', $user);
|
128 |
-
|
129 |
-
wdbj_tml_set_var($redirect_to, 'redirect_to');
|
130 |
|
|
|
|
|
|
|
|
|
|
|
131 |
if ( !is_wp_error($user) ) {
|
132 |
// If the user can't edit posts, send them to their profile.
|
133 |
if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) )
|
121 |
if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
|
122 |
$secure_cookie = false;
|
123 |
|
124 |
+
$user = wp_signon('', $secure_cookie);
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
+
$redirect_to = apply_filters('login_redirect', $redirect_to, isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : '', $user);
|
127 |
+
|
128 |
+
wdbj_tml_set_var($redirect_to, 'redirect_to');
|
129 |
+
|
130 |
+
if ( $http_post ) {
|
131 |
if ( !is_wp_error($user) ) {
|
132 |
// If the user can't edit posts, send them to their profile.
|
133 |
if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) )
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: jfarthing84
|
|
3 |
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-
|
7 |
-
Stable tag: 5.1.
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
3 |
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-RC1
|
7 |
+
Stable tag: 5.1.2
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
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: 5.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: 5.1.2
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|