diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index a46efd555f..2a562c138a 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -57,7 +57,7 @@ function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = fal if ( $url ) $html = "$html"; - $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url ); + $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); return $html; } diff --git a/wp-includes/media.php b/wp-includes/media.php index 7201f64363..1b3295972d 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -98,7 +98,8 @@ function get_image_tag($id, $alt, $title, $align, $size='medium') { $html = ''.attribute_escape($alt).''; - $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url ); + $url = ''; + $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); return $html; }