New blog in multisite always with http scheme
-
Why is it that when I create a new blog in a multisite (subdomain), the scheme is always set to “http” instead of “https”? Look in the database:
table: “options”, fields: “siteurl” and “home”.
I figured out that this is hard-coded in the wp_initialize_site() function but I don’t understand why?https://developer.www.ads-software.com/reference/functions/wp_initialize_site/ -> line 712
$home_scheme = 'http';
$siteurl_scheme = 'http';
if ( ! is_subdomain_install() ) {
if ( 'https' === parse_url( get_home_url( $network->site_id ), PHP_URL_SCHEME ) ) {
$home_scheme = 'https';
}
if ( 'https' === parse_url( get_network_option( $network->id, 'siteurl' ), PHP_URL_SCHEME ) ) {
$siteurl_scheme = 'https';
}
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.