Version Description
- Fix multisite 404 error when using Post Name permalink structure
- Fix multisite redirect to main site for register
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 6.3.1 |
Comparing to | |
See all releases |
Code changes from version 6.3 to 6.3.1
- includes/class-theme-my-login-ms-signup.php +7 -0
- includes/class-theme-my-login.php +1 -1
- readme.txt +5 -1
- theme-my-login.php +1 -1
includes/class-theme-my-login-ms-signup.php
CHANGED
@@ -545,8 +545,15 @@ class Theme_My_Login_MS_Signup extends Theme_My_Login_Abstract {
|
|
545 |
*/
|
546 |
public function network_site_url( $url, $path, $orig_scheme ) {
|
547 |
global $current_site;
|
|
|
548 |
$url = $this->site_url( $url, $path, $orig_scheme );
|
|
|
|
|
|
|
549 |
$url = Theme_My_Login::get_object()->site_url( $url, $path, $orig_scheme, $current_site->blog_id );
|
|
|
|
|
|
|
550 |
return $url;
|
551 |
}
|
552 |
|
545 |
*/
|
546 |
public function network_site_url( $url, $path, $orig_scheme ) {
|
547 |
global $current_site;
|
548 |
+
|
549 |
$url = $this->site_url( $url, $path, $orig_scheme );
|
550 |
+
|
551 |
+
switch_to_blog( 1 );
|
552 |
+
|
553 |
$url = Theme_My_Login::get_object()->site_url( $url, $path, $orig_scheme, $current_site->blog_id );
|
554 |
+
|
555 |
+
restore_current_blog();
|
556 |
+
|
557 |
return $url;
|
558 |
}
|
559 |
|
includes/class-theme-my-login.php
CHANGED
@@ -223,7 +223,7 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
223 |
if ( ! $wp_query->is_main_query() )
|
224 |
return;
|
225 |
|
226 |
-
if ( $pagename = $wp_query->get( 'pagename' ) ) {
|
227 |
if ( $page = get_page_by_path( $pagename, OBJECT, 'tml_page' ) ) {
|
228 |
$wp_query->set( 'post_type', 'tml_page' );
|
229 |
$wp_query->is_single = true;
|
223 |
if ( ! $wp_query->is_main_query() )
|
224 |
return;
|
225 |
|
226 |
+
if ( ( $pagename = $wp_query->get( 'pagename' ) ) || ( $pagename = $wp_query->get( 'name' ) ) ) {
|
227 |
if ( $page = get_page_by_path( $pagename, OBJECT, 'tml_page' ) ) {
|
228 |
$wp_query->set( 'post_type', 'tml_page' );
|
229 |
$wp_query->is_single = true;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jfarthing84
|
|
3 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 3.5.1
|
6 |
-
Stable tag: 6.3
|
7 |
|
8 |
Themes the WordPress login pages according to your theme.
|
9 |
|
@@ -56,6 +56,10 @@ Please visit http://www.jfarthing.com/development/theme-my-login first and then
|
|
56 |
|
57 |
== Changelog ==
|
58 |
|
|
|
|
|
|
|
|
|
59 |
= 6.3 =
|
60 |
* Introduce tml_page post type and give each action it's own page
|
61 |
* Introduce AJAX module
|
3 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 3.5.1
|
6 |
+
Stable tag: 6.3.1
|
7 |
|
8 |
Themes the WordPress login pages according to your theme.
|
9 |
|
56 |
|
57 |
== Changelog ==
|
58 |
|
59 |
+
= 6.3.1 =
|
60 |
+
* Fix multisite 404 error when using Post Name permalink structure
|
61 |
+
* Fix multisite redirect to main site for register
|
62 |
+
|
63 |
= 6.3 =
|
64 |
* Introduce tml_page post type and give each action it's own page
|
65 |
* Introduce AJAX module
|
theme-my-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
-
Version: 6.3
|
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/extend/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
+
Version: 6.3.1
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|