mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
Pass size to image_send_to_editor filter. fies #6691 for 2.5
git-svn-id: https://develop.svn.wordpress.org/branches/2.5@7672 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a26ecb1175
commit
f4ac566556
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user