diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 478dfdd768..c1933335d4 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -106,7 +106,7 @@ function the_media_upload_tabs() {
*/
function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
- $html = get_image_tag($id, $alt, $title, $align, $size);
+ $html = get_image_tag($id, $alt, '', $align, $size);
$rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : '';
diff --git a/wp-includes/media.php b/wp-includes/media.php
index 015e6f21fd..1e5cc377d4 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -225,10 +225,12 @@ function get_image_tag($id, $alt, $title, $align, $size='medium') {
list( $img_src, $width, $height ) = image_downsize($id, $size);
$hwstring = image_hwstring($width, $height);
+ $title = $title ? 'title="' . esc_attr( $title ) . '" ' : '';
+
$class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-image-' . $id;
$class = apply_filters('get_image_tag_class', $class, $id, $align, $size);
- $html = '';
+ $html = '';
$html = apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );