Make WordPress Core


Ignore:
Timestamp:
03/21/2008 11:21:27 PM (18 years ago)
Author:
ryan
Message:

pretty delete animation, fix squashed icons and use 80x60 thumbs, add rel attrs to attachment links inserted from uploader. Props andy. see #5911

File:
1 edited

Legend:

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

    r7444 r7466  
    9292
    9393// return an <img src /> tag for the given image attachment, scaling it down if requested
    94 function get_image_tag($id, $alt, $title, $align, $rel = false, $size='medium') {
     94function get_image_tag($id, $alt, $title, $align, $size='medium') {
    9595
    9696        list( $img_src, $width, $height ) = image_downsize($id, $size);
    9797        $hwstring = image_hwstring($width, $height);
    9898
    99         $html = '<img src="'.attribute_escape($img_src).'" alt="'.attribute_escape($alt).'" title="'.attribute_escape($title).'" '.$hwstring.'class="align'.attribute_escape($align).' size-'.attribute_escape($size).' attachment wp-att-'.attribute_escape($id).'" />';
     99        $html = '<img src="'.attribute_escape($img_src).'" alt="'.attribute_escape($alt).'" title="'.attribute_escape($title).'" '.$hwstring.'class="align'.attribute_escape($align).' size-'.attribute_escape($size).' wp-image-'.$id.'" />';
    100100
    101101        $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url );
Note: See TracChangeset for help on using the changeset viewer.