Use correct variable. see #19607.
git-svn-id: https://develop.svn.wordpress.org/trunk@19877 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a60932bf66
commit
e91cbc3190
|
@ -92,7 +92,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! $redirect_url && get_option( 'home' ) != get_option( 'url' ) ) {
|
if ( ! $redirect_url && get_option( 'home' ) != get_option( 'siteurl' ) ) {
|
||||||
if ( $original['path'] == home_url( 'wp-admin/', 'relative' ) )
|
if ( $original['path'] == home_url( 'wp-admin/', 'relative' ) )
|
||||||
$redirect_url = admin_url();
|
$redirect_url = admin_url();
|
||||||
elseif ( $original['path'] == home_url( 'wp-login.php', 'relative' ) )
|
elseif ( $original['path'] == home_url( 'wp-login.php', 'relative' ) )
|
||||||
|
|
Loading…
Reference in New Issue