[wp-trac] [WordPress Trac] #42557: Wrong Behaviour on get_site_url for multiple sites with different protocol

WordPress Trac noreply at wordpress.org
Thu Dec 21 23:18:18 UTC 2017


#42557: Wrong Behaviour on get_site_url for multiple sites with different protocol
--------------------------------+------------------------------
 Reporter:  matteowebsolution   |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  4.9
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by gjanezic):

 Hello!

 I came here to post the same issue, and then dig around little more..

 Here is a quickfix.

 wp-includes/link-template.php (line 3020; get_site_url()):

 {{{#!php
         if ( parse_url( $url, PHP_URL_SCHEME ) == 'http' )
                 $scheme = 'http';
 }}}

 '''However I'm new to WordPress and this might not be an acceptable
 solution!

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


More information about the wp-trac mailing list