mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Don't prepend the host if it's already a full URL.
git-svn-id: https://develop.svn.wordpress.org/trunk@8028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e9dd827bfc
commit
52d8b76c48
@ -98,11 +98,11 @@ function get_images_from_uri($uri) {
|
||||
if ( empty($matches[1]) ) return '';
|
||||
|
||||
$sources = array();
|
||||
|
||||
foreach ($matches[1] as $src) {
|
||||
if ( false !== strpos($src, '&') )
|
||||
continue;
|
||||
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
|
||||
if ( !strstr( $src, 'http://' ) )
|
||||
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
|
||||
|
||||
$sources[] = $src;
|
||||
}
|
||||
@ -393,4 +393,4 @@ $url = clean_url($_GET['u']);
|
||||
<?php } */?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user