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:
parent
0b4e9e6d5f
commit
db1134b9f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user