Make WordPress Core

Ticket #20750: 20750.patch

File 20750.patch, 582 bytes (added by johnbillion, 14 years ago)
  • wp-includes/link-template.php

     
    18751875                $url = preg_replace( '#^.+://[^/]*#', '', $url );
    18761876        elseif ( 'http' != $scheme )
    18771877                $url = str_replace( 'http://', "$scheme://", $url );
     1878        elseif ( 'http' == $scheme )
     1879                $url = str_replace( 'https://', "$scheme://", $url );
    18781880
    18791881        if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false )
    18801882                $url .= '/' . ltrim( $path, '/' );