do not add rel if link is not get_attachment_link. Props andy. fixes #6428
git-svn-id: http://svn.automattic.com/wordpress/trunk@7557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a29ec701f5
commit
acb9f8f738
|
@ -511,7 +511,9 @@ function image_media_send_to_editor($html, $attachment_id, $attachment) {
|
|||
else
|
||||
$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;
|
||||
|
|
Loading…
Reference in New Issue