diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-12 23:02:44 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-12 23:02:44 +0000 |
commit | bed8532fd2d9cc526a74f4fc4214887b37cf6e71 (patch) | |
tree | 39dd88dcff2fe4106c4f1303272ac4917c2a4dfd | |
parent | 1980c948464d909b6f6893c1d7df4087789cf2be (diff) | |
download | wordpress-mu-bed8532fd2d9cc526a74f4fc4214887b37cf6e71.tar.gz wordpress-mu-bed8532fd2d9cc526a74f4fc4214887b37cf6e71.tar.xz wordpress-mu-bed8532fd2d9cc526a74f4fc4214887b37cf6e71.zip |
No more mangled URLs when creating blogs through a www. url hopefully
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@914 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-includes/wpmu-functions.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 55aef90..e7cc511 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -78,12 +78,7 @@ function get_blogaddress_by_id( $blog_id ) { global $hostname, $domain, $base, $wpdb; $bloginfo = get_blog_details( $blog_id, false ); // only get bare details! - - if( defined( "VHOST" ) && constant( "VHOST" ) == 'yes' ) { - return "http://" . $bloginfo->domain . $bloginfo->path; - } else { - return get_blogaddress_by_domain($bloginfo->domain, $bloginfo->path); - } + return "http://" . $bloginfo->domain . $bloginfo->path; } function get_blogaddress_by_name( $blogname ) { @@ -258,7 +253,7 @@ function get_site_option( $key, $default = false, $use_cache = true ) { function add_site_option( $key, $value ) { global $wpdb; - $exists = $wpdb->get_var("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = '$key' AND site_id = '$wpdb->siteid'"); + $exists = $wpdb->get_var("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = '$key' AND site_id = '{$wpdb->siteid}'"); if ( null !== $exists ) // If we already have it return false; |