Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #21153


Ignore:
Timestamp:
09/28/2014 11:43:29 AM (10 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21153 – Description

    initial v3  
    1 changing http:// and https:// generated links to // links would easily add support for hosting a site both under http and https easily
     1changing `http://` and `https://` generated links to `//` links would easily add support for hosting a site both under http and https easily
    22
    33one place I've found this to be changed is in wp-includes/link-template.php around line 2006
    44
    55the first if could be changed to:
    6 
     6{{{
    77$url = str_replace( "https://", "//", $url)
    88$url = str_replace( "http://", "//", $url)
     9}}}