Make WordPress Core

Ticket #34826: ajax-actions.diff

File ajax-actions.diff, 578 bytes (added by lucymtc, 11 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    25702570        $rel = '';
    25712571        $url = empty( $attachment['url'] ) ? '' : $attachment['url'];
    25722572        if ( strpos( $url, 'attachment_id') || get_attachment_link( $id ) == $url ) {
    2573                 $rel = ' rel="attachment wp-att-' . $id . '"';
     2573                $rel = 'attachment wp-att-' . $id;
    25742574        }
    25752575
    25762576        remove_filter( 'media_send_to_editor', 'image_media_send_to_editor' );