[wp-trac] [WordPress Trac] #27499: When creating new subdomain site, siteurl and home are set to http:// instead of https://

WordPress Trac noreply at wordpress.org
Wed Feb 18 12:36:16 UTC 2026


#27499: When creating new subdomain site, siteurl and home are set to http://
instead of https://
--------------------------------+--------------------------
 Reporter:  tomdxw              |       Owner:  johnbillion
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:
Component:  Networks and Sites  |     Version:  3.8.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+--------------------------

Comment (by skithund):

 Attached is couple of different approaches, by adding `url_scheme` to
 `wp_initialize_site_args` and another is to use HTTPS always, if the main
 network site is also HTTPS - which I'd prefer over using filters.

 Forcing HTTPS should be possible right now by overriding
 `$args['options']['siteurl']` and `$args['options']['home']` in
 `wp_initialize_site_args` hook. Haven't tested this yet.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/27499#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list