From a9086170fbe2314625e9c3946fd4f6586d42480c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 25 Apr 2008 17:58:38 +0000 Subject: [PATCH] Don't reuse image_send_to_editor filter in get_image_tag(). Props AaronCampbell. fixes #6806 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@7838 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/media.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index f43a2f0ec7..5a5dc8701b 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -98,8 +98,7 @@ function get_image_tag($id, $alt, $title, $align, $size='medium') { $html = ''.attribute_escape($alt).''; - $url = ''; - $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); + $html = apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size ); return $html; }