diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index 64024b1166..5bbfc53c60 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -3590,7 +3590,7 @@ function network_home_url( $path = '', $scheme = null ) { $orig_scheme = $scheme; if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ), true ) ) { - $scheme = is_ssl() && ! is_admin() ? 'https' : 'http'; + $scheme = is_ssl() ? 'https' : 'http'; } if ( 'relative' === $scheme ) {