Only img src. see #6813

git-svn-id: http://svn.automattic.com/wordpress/trunk@7933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-05-14 23:21:28 +00:00
parent 7ce984281f
commit 36badd926e
1 changed files with 1 additions and 1 deletions

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 '';