Ticket #33041: get_blogaddress_by_id-scheme.diff
File get_blogaddress_by_id-scheme.diff, 545 bytes (added by , 9 years ago) |
---|
-
wp-includes/ms-blogs.php
diff --git wp-includes/ms-blogs.php wp-includes/ms-blogs.php index 966fb73..ebcc06b 100644
function wpmu_update_blogs_date() { 39 39 */ 40 40 function get_blogaddress_by_id( $blog_id ) { 41 41 $bloginfo = get_blog_details( (int) $blog_id, false ); // only get bare details! 42 return ( $bloginfo ) ? esc_url( 'http://' . $bloginfo->domain . $bloginfo->path) : '';42 return ( $bloginfo ) ? esc_url( set_url_scheme( 'http://' . $bloginfo->domain . $bloginfo->path ) ) : ''; 43 43 } 44 44 45 45 /**