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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-06-26 22:05:01 +00:00
parent 78afb8f235
commit 1fa06da55c

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;