[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 16:14:31 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              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  multisite
--------------------------------+------------------------------
Changes (by bobbingwide):

 * keywords:   => needs-patch


Comment:

 Simple solution would be to wrap esc_url() with set_url_scheme()

 {{{
 echo set_url_scheme( esc_url( $details->domain . $details->path ));
 }}}

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


More information about the wp-trac mailing list