Version Description
- Fix the_title() bug fro WP versions before 3.0 (again)
- Fix undefined is_user_logged_in() bug
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 5.1.4 |
Comparing to | |
See all releases |
Code changes from version 5.1.3 to 5.1.4
- includes/hook-functions.php +1 -1
- modules/themed-profiles/themed-profiles.php +6 -2
- readme.txt +5 -1
- theme-my-login.php +1 -1
includes/hook-functions.php
CHANGED
@@ -9,7 +9,7 @@ function wdbj_tml_the_title($title, $post_id = '') {
|
|
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 ) {
|
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 AND post_status = 'publish'", $title ) );
|
13 |
}
|
14 |
|
15 |
if ( wdbj_tml_get_option('page_id') == $post_id ) {
|
modules/themed-profiles/themed-profiles.php
CHANGED
@@ -4,6 +4,12 @@ Plugin Name: Themed Profiles
|
|
4 |
Description: Enabling this module will initialize and enable themed profiles. There are no other settings for this module.
|
5 |
*/
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
add_action('tml_init', 'wdbj_tml_themed_profiles_init');
|
8 |
function wdbj_tml_themed_profiles_init() {
|
9 |
if ( is_user_logged_in() && is_page(wdbj_tml_get_option('page_id')) && !( isset($_REQUEST['action']) && in_array($_REQUEST['action'], array('update', 'profile', 'logout')) ) ) {
|
@@ -74,8 +80,6 @@ function wdbj_tml_themed_profiles_template_redirect() {
|
|
74 |
}
|
75 |
}
|
76 |
|
77 |
-
add_filter('site_url', 'wdbj_tml_themed_profiles_site_url', 10, 3);
|
78 |
-
add_filter('admin_url', 'wdbj_tml_themed_profiles_site_url', 10, 2);
|
79 |
function wdbj_tml_themed_profiles_site_url($url, $path, $orig_scheme = '') {
|
80 |
global $wp_rewrite, $current_user;
|
81 |
|
4 |
Description: Enabling this module will initialize and enable themed profiles. There are no other settings for this module.
|
5 |
*/
|
6 |
|
7 |
+
add_action('tml_load', 'wdbj_tml_themed_profiles_load');
|
8 |
+
function wdbj_tml_themed_profiles_load() {
|
9 |
+
add_filter('site_url', 'wdbj_tml_themed_profiles_site_url', 10, 3);
|
10 |
+
add_filter('admin_url', 'wdbj_tml_themed_profiles_site_url', 10, 2);
|
11 |
+
}
|
12 |
+
|
13 |
add_action('tml_init', 'wdbj_tml_themed_profiles_init');
|
14 |
function wdbj_tml_themed_profiles_init() {
|
15 |
if ( is_user_logged_in() && is_page(wdbj_tml_get_option('page_id')) && !( isset($_REQUEST['action']) && in_array($_REQUEST['action'], array('update', 'profile', 'logout')) ) ) {
|
80 |
}
|
81 |
}
|
82 |
|
|
|
|
|
83 |
function wdbj_tml_themed_profiles_site_url($url, $path, $orig_scheme = '') {
|
84 |
global $wp_rewrite, $current_user;
|
85 |
|
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-RC1
|
7 |
-
Stable tag: 5.1.
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
@@ -43,6 +43,10 @@ None yet. Please visit http://www.jfarthing.com/forum for any support!
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
|
|
46 |
= 5.1.3 =
|
47 |
* Make Themed Profiles work properly
|
48 |
|
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.4
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 5.1.4 =
|
47 |
+
* Fix the_title() bug fro WP versions before 3.0 (again)
|
48 |
+
* Fix undefined is_user_logged_in() bug
|
49 |
+
|
50 |
= 5.1.3 =
|
51 |
* Make Themed Profiles work properly
|
52 |
|
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.4
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|