From e91cbc31904e6f1c3fb035f076c1d88b59b8457d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 8 Feb 2012 17:14:52 +0000 Subject: [PATCH] Use correct variable. see #19607. git-svn-id: https://develop.svn.wordpress.org/trunk@19877 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/canonical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php index 0c09d42f0e..248989759b 100644 --- a/wp-includes/canonical.php +++ b/wp-includes/canonical.php @@ -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' ) )