diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
index 1daf487..9bb2c6d 100644
|
a
|
b
|
function network_site_url( $path = '', $scheme = null ) { |
| 2107 | 2107 | if ( ! is_multisite() ) |
| 2108 | 2108 | return site_url($path, $scheme); |
| 2109 | 2109 | |
| 2110 | | if ( 'relative' == $scheme ) |
| 2111 | | $url = $current_site->path; |
| 2112 | | else |
| 2113 | | $url = set_url_scheme( 'http://' . $current_site->domain . $current_site->path, $scheme ); |
| | 2110 | $url = get_site_option('siteurl'); |
| | 2111 | |
| | 2112 | $url = set_url_scheme( $url, $scheme ); |
| 2114 | 2113 | |
| 2115 | 2114 | if ( $path && is_string( $path ) ) |
| 2116 | 2115 | $url .= ltrim( $path, '/' ); |