Pass size to image_send_to_editor filter. fies #6691 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@7671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-04-14 19:47:07 +00:00
parent 8eff77e82d
commit 02e0c889f7
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@ function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = fal
if ( $url )
$html = "<a href='".attribute_escape($url)."'$rel>$html</a>";
$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;
}

View File

@ -98,7 +98,8 @@ 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.'" />';
$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;
}