mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user