Make WordPress Core

Ticket #33041: get_blogaddress_by_id-scheme.diff

File get_blogaddress_by_id-scheme.diff, 545 bytes (added by AD7six, 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() { 
    3939 */
    4040function get_blogaddress_by_id( $blog_id ) {
    4141        $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 ) ) : '';
    4343}
    4444
    4545/**