Use a consistent variable.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-10-23 17:51:18 +00:00
parent 3dfec1ee81
commit c2f5e78a1e
1 changed files with 3 additions and 3 deletions

View File

@ -1953,12 +1953,12 @@ function get_home_url( $blog_id = null, $path = '', $scheme = null ) {
$scheme = is_ssl() && !is_admin() ? 'https' : 'http';
if ( empty( $blog_id ) || !is_multisite() )
$home = get_option( 'home' );
$url = get_option( 'home' );
else
$home = get_blog_option( $blog_id, 'home' );
$url = get_blog_option( $blog_id, 'home' );
if ( 'http' != $scheme )
$url = str_replace( 'http://', "$scheme://", $home );
$url = str_replace( 'http://', "$scheme://", $url );
if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false )
$url .= '/' . ltrim( $path, '/' );