mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
When inserting an image via oEmbed, wrap it in a link. props MarkJaquith, fixes #14945.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0902043f6d
commit
d397326116
@ -242,7 +242,7 @@ class WP_oEmbed {
|
||||
return false;
|
||||
|
||||
$title = ( !empty($data->title) ) ? $data->title : '';
|
||||
$return = '<img src="' . esc_url( $data->url ) . '" alt="' . esc_attr($title) . '" width="' . esc_attr($data->width) . '" height="' . esc_attr($data->height) . '" />';
|
||||
$return = '<a href="' . esc_url( $url ) . '"><img src="' . esc_url( $data->url ) . '" alt="' . esc_attr($title) . '" width="' . esc_attr($data->width) . '" height="' . esc_attr($data->height) . '" /></a>';
|
||||
break;
|
||||
|
||||
case 'video':
|
||||
|
Loading…
Reference in New Issue
Block a user