From 36badd926e8ed622bca96d225db7804e0674fbd1 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 14 May 2008 23:21:28 +0000 Subject: [PATCH] Only img src. see #6813 git-svn-id: http://svn.automattic.com/wordpress/trunk@7933 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 '';