Make WordPress Core

Ticket #21153: 21153.patch

File 21153.patch, 609 bytes (added by nagyv, 12 years ago)

a git diff

  • wp-includes/link-template.php

    diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
    index 31bacca..e5035c8 100644
    a b function includes_url($path = '') { 
    20122012*/
    20132013function content_url($path = '') {
    20142014        $url = WP_CONTENT_URL;
    2015         if ( 0 === strpos($url, 'http') && is_ssl() )
    2016                 $url = str_replace( 'http://', 'https://', $url );
     2015        $url = str_replace( " https://", "//", $url)
     2016        $url = str_replace( " http://", "//", $url)
    20172017
    20182018        if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
    20192019                $url .= '/' . ltrim($path, '/');