WordPress.org

Make WordPress Core

Changeset 7557


Ignore:
Timestamp:
03/28/2008 03:53:05 AM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r7550 r7557  
    512512            $size = 'medium';
    513513
    514         return get_image_send_to_editor($attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, true, $size);
     514        $rel = ( $url == get_attachment_link($attachment_id) );
     515
     516        return get_image_send_to_editor($attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, $rel, $size);
    515517    }
    516518
Note: See TracChangeset for help on using the changeset viewer.