Use correct variable. see #19607.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-02-08 17:14:52 +00:00
parent 312e1f1811
commit 71c82d0eaf
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) )
$redirect_url = admin_url();
elseif ( $original['path'] == home_url( 'wp-login.php', 'relative' ) )