Don't prepend the host if it's already a full URL.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2e51769171
commit
727379047b
|
@ -98,10 +98,10 @@ function get_images_from_uri($uri) {
|
|||
if ( empty($matches[1]) ) return '';
|
||||
|
||||
$sources = array();
|
||||
|
||||
foreach ($matches[1] as $src) {
|
||||
if ( false !== strpos($src, '&') )
|
||||
continue;
|
||||
if ( !strstr( $src, 'http://' ) )
|
||||
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
|
||||
|
||||
$sources[] = $src;
|
||||
|
|
Loading…
Reference in New Issue