[wp-trac] [WordPress Trac] #21153: supporting protocol-relative urls

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 4 10:04:09 UTC 2012


#21153: supporting protocol-relative urls
-------------------------+-----------------------------
 Reporter:  nagyv        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.3.2
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 changing http:// and https:// generated links to // links would easily add
 support for hosting a site both under http and https easily

 one place I've found this to be changed is in wp-includes/link-
 template.php around line 2006

 the first if could be changed to:

 $url = str_replace( "https://", "//", $url)
 $url = str_replace( "http://", "//", $url)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21153>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list