diff --git wp-includes/link-template.php wp-includes/link-template.php
index de76f45..a81ef7a 100644
|
|
|
function network_home_url( $path = '', $scheme = null ) { |
| 2139 | 2139 | |
| 2140 | 2140 | $orig_scheme = $scheme; |
| 2141 | 2141 | |
| | 2142 | $is_login = !empty($GLOBALS['pagenow']) && in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); |
| | 2143 | |
| 2142 | 2144 | if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) ) |
| 2143 | | $scheme = is_ssl() && ! is_admin() ? 'https' : 'http'; |
| | 2145 | $scheme = is_ssl() && ! is_admin() && ! $is_login ? 'https' : 'http'; |
| 2144 | 2146 | |
| 2145 | 2147 | if ( 'relative' == $scheme ) |
| 2146 | 2148 | $url = $current_site->path; |