do not add rel if link is not get_attachment_link. Props andy. fixes #6428

git-svn-id: https://develop.svn.wordpress.org/trunk@7557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-28 03:53:05 +00:00
parent 657b4a3725
commit 7725f13a7d

View File

@ -511,7 +511,9 @@ function image_media_send_to_editor($html, $attachment_id, $attachment) {
else else
$size = 'medium'; $size = 'medium';
return get_image_send_to_editor($attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, true, $size); $rel = ( $url == get_attachment_link($attachment_id) );
return get_image_send_to_editor($attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, $rel, $size);
} }
return $html; return $html;