Ticket #25201: 25201.diff
File 25201.diff, 637 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/link-template.php
1963 1963 * @return string Site url link with optional path appended. 1964 1964 */ 1965 1965 function 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() ) { 1967 1969 $url = get_option( 'siteurl' ); 1968 1970 } else { 1969 1971 switch_to_blog( $blog_id );