Don't prepend http. Props noel. see #6813

git-svn-id: https://develop.svn.wordpress.org/trunk@8201 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-06-26 22:05:01 +00:00
parent 0b4e9e6d5f
commit db1134b9f1

View File

@ -330,8 +330,6 @@ function media_sideload_image($file, $post_id, $desc = null) {
}
if ( !empty($src) ) {
if ( !strpos($src, '://') )
$src = "http://$src";
$alt = @$desc;
$html = "<img src='$src' alt='$alt' />";
return $html;