Changeset 13875 for trunk/wp-admin/includes/media.php
- Timestamp:
- 03/29/2010 09:57:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r13769 r13875 463 463 if ( !empty($attachment['url']) ) { 464 464 $rel = ''; 465 if ( strpos($attachment['url'], 'attachment_id') || false !== strpos($attachment['url'], get_permalink($_POST['post_id'])))466 $rel = " rel='attachment wp-att-" . esc_attr($send_id) ."'";465 if ( strpos($attachment['url'], 'attachment_id') || get_attachment_link($send_id) == $attachment['url'] ) 466 $rel = " rel='attachment wp-att-" . esc_attr($send_id) . "'"; 467 467 $html = "<a href='{$attachment['url']}'$rel>$html</a>"; 468 468 }
Note: See TracChangeset
for help on using the changeset viewer.