Clean image urls in get_images_from_uri(). see #7220
git-svn-id: https://develop.svn.wordpress.org/trunk@8240 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
45ac770299
commit
713216192b
@ -199,7 +199,7 @@ if($_REQUEST['ajax'] == 'photo_images') {
|
|||||||
else
|
else
|
||||||
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
|
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
|
||||||
|
|
||||||
$sources[] = $src;
|
$sources[] = clean_url($src);
|
||||||
}
|
}
|
||||||
return "'" . implode("','", $sources) . "'";
|
return "'" . implode("','", $sources) . "'";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user