mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
7ce984281f
commit
36badd926e
@ -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 '';
|
||||
|
Loading…
Reference in New Issue
Block a user