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
This commit is contained in:
parent
dcfa61678b
commit
a9086170fb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user