From 06737997a21ad6babfa7f1e365b869555aa52d57 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 14 May 2008 23:21:28 +0000 Subject: [PATCH] Only img src. see #6813 git-svn-id: https://develop.svn.wordpress.org/trunk@7933 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/press-this.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index bdc042deec..973f19d6df 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -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 '';