WordPress.org

Make WordPress Core

Ticket #23689: get_blogaddress_by_name.patch

File get_blogaddress_by_name.patch, 514 bytes (added by dllh, 14 months ago)
  • wp-includes/ms-blogs.php

     
    4848                        $blogname = 'www'; 
    4949                $url = rtrim( network_home_url(), '/' ); 
    5050                if ( !empty( $blogname ) ) 
    51                         $url = preg_replace( '|^([^\.]+://)|', '$1' . $blogname . '.', $url ); 
     51                        $url = preg_replace( '|^([^\.]+://)|', "\${1}" . $blogname . '.', $url ); 
    5252        } else { 
    5353                $url = network_home_url( $blogname ); 
    5454        }