Ticket #12735: 12736.2.patch
File 12736.2.patch, 1.5 KB (added by , 14 years ago) |
---|
-
wp-includes/link-template.php
1837 1837 if ( empty($blog_id) || !is_multisite() ) 1838 1838 $home = get_option('home'); 1839 1839 else 1840 $home = untrailingslashit(get_blogaddress_by_id($blog_id));1840 $home = get_blog_option($blog_id,'home'); 1841 1841 1842 1842 $url = str_replace( 'http://', "$scheme://", $home ); 1843 1843 … … 1899 1899 if ( empty($blog_id) || !is_multisite() ) 1900 1900 $url = get_option('siteurl'); 1901 1901 else 1902 $url = untrailingslashit(get_blogaddress_by_id($blog_id));1902 $url = get_blog_option($blog_id,'siteurl'); 1903 1903 1904 1904 $url = str_replace( 'http://', "{$scheme}://", $url ); 1905 1905 -
wp-includes/ms-blogs.php
27 27 global $current_site; 28 28 29 29 if ( is_subdomain_install() ) { 30 if(strpos($current_site->domain,$blogname)!==false) 31 return esc_url('http://'.$current_site->domain . $current_site->path); 30 32 if ( $blogname == 'main' ) 31 33 $blogname = 'www'; 32 34 return esc_url( 'http://' . $blogname . '.' . $current_site->domain . $current_site->path ); 33 35 } else { 36 if(strpos($current_site->path,$blogname)!==false) 37 return esc_url( 'http://' . $current_site->domain . $current_site->path); 34 38 return esc_url( 'http://' . $current_site->domain . $current_site->path . $blogname . '/' ); 35 39 } 36 40 }