[wp-trac] [WordPress Trac] #40235: Site Address (URL) in network/site-info.php for primary site always prefixed http://
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Mar 22 11:52:44 UTC 2017
    
    
  
#40235: Site Address (URL) in network/site-info.php for primary site always
prefixed http://
--------------------------------+-----------------------------
 Reporter:  bobbingwide         |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 While switching a WordPress Multisite network to `https`, I noticed that
 on Edit site for the primary site,
 `wp-admin/network/site-info.php?id=1`, the Site Address (URL) field was
 displayed as `http://example.com even` though I was using `https://` to
 access the site.
 I would have expected it to be `https://example.com`
 === Explanation ===
 esc_url() assumes the http:// if the URL doesn't contain a scheme.
 === Proposed solution ===
 Use logic similar to that in network_home_url().
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40235>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list