mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +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 )
|
if ( false === $content )
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
$pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/';
|
$pattern = '/img.+?src=[\'"]?([^\'" >]+)[\'" >]/';
|
||||||
preg_match_all($pattern, $content, $matches);
|
preg_match_all($pattern, $content, $matches);
|
||||||
if ( empty($matches[1]) )
|
if ( empty($matches[1]) )
|
||||||
return '';
|
return '';
|
||||||
|
Loading…
Reference in New Issue
Block a user