mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Image regex fixes from noel. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@8332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f5aa3fa57
commit
7b7d5d8611
@ -183,7 +183,7 @@ if($_REQUEST['ajax'] == 'photo_images') {
|
||||
|
||||
$host = parse_url($uri);
|
||||
|
||||
$pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))(\2)([^>\/]*)\/*>/is';
|
||||
$pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>\/]*)\/*>/is';
|
||||
preg_match_all($pattern, $content, $matches);
|
||||
|
||||
if ( empty($matches[1]) ) return '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user