Don't reuse image_send_to_editor filter in get_image_tag(). Props AaronCampbell. fixes #6806 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@7838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-04-25 17:58:38 +00:00
parent 87b1154989
commit 7564d59d47
1 changed files with 1 additions and 2 deletions

View File

@ -98,8 +98,7 @@ function get_image_tag($id, $alt, $title, $align, $size='medium') {
$html = '<img src="'.attribute_escape($img_src).'" alt="'.attribute_escape($alt).'" title="'.attribute_escape($title).'" '.$hwstring.'class="align'.attribute_escape($align).' size-'.attribute_escape($size).' wp-image-'.$id.'" />';
$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;
}