Only img src. see #6813

git-svn-id: https://develop.svn.wordpress.org/trunk@7933 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-05-14 23:21:28 +00:00
parent 398253a850
commit 06737997a2

View File

@@ -87,7 +87,7 @@ function get_images_from_uri($uri) {
if ( false === $content )
return '';
$pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/';
$pattern = '/img.+?src=[\'"]?([^\'" >]+)[\'" >]/';
preg_match_all($pattern, $content, $matches);
if ( empty($matches[1]) )
return '';