Make WordPress Core

Ticket #25201: 25201.diff

File 25201.diff, 637 bytes (added by iandunn, 11 years ago)
  • src/wp-includes/link-template.php

     
    19631963 * @return string Site url link with optional path appended.
    19641964*/
    19651965function get_site_url( $blog_id = null, $path = '', $scheme = null ) {
    1966         if ( empty( $blog_id ) || !is_multisite() ) {
     1966        if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
     1967                $url = wp_guess_url();
     1968        } elseif ( empty( $blog_id ) || !is_multisite() ) {
    19671969                $url = get_option( 'siteurl' );
    19681970        } else {
    19691971                switch_to_blog( $blog_id );