[wp-trac] [WordPress Trac] #49210: Multisite: home and siteurl options always use the http scheme in subdomain installs
WordPress Trac
noreply at wordpress.org
Thu Jan 16 23:52:23 UTC 2020
#49210: Multisite: home and siteurl options always use the http scheme in subdomain
installs
--------------------------------+-----------------------------
Reporter: henry.wright | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Keywords:
Focuses: multisite |
--------------------------------+-----------------------------
In {{{wp_initialize_site()}}}:
{{{
$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';
}
}
// home and siteurl options are populated next
}}}
This results in http being used as the scheme in home and siteurl option
values for subsites
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49210>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list