From 892760ad7a51de0a13e21636599abba5256d23c8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 18 Nov 2010 02:17:13 +0000 Subject: [PATCH] When inserting an image via oEmbed, wrap it in a link. props MarkJaquith, fixes #14945. git-svn-id: https://develop.svn.wordpress.org/trunk@16444 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index a09b316768..87e59a69b0 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -242,7 +242,7 @@ class WP_oEmbed { return false; $title = ( !empty($data->title) ) ? $data->title : ''; - $return = '' . esc_attr($title) . ''; + $return = '' . esc_attr($title) . ''; break; case 'video':