WordPress.org

Make WordPress Core

Changeset 7838


Ignore:
Timestamp:
04/25/08 17:58:38 (7 years ago)
Author:
ryan
Message:

Don't reuse image_send_to_editor filter in get_image_tag(). Props AaronCampbell. fixes #6806 for trunk

File:
1 edited

Legend:

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

    r7814 r7838  
    9999    $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 
    101     $url = ''; 
    102     $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); 
     101    $html = apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size ); 
    103102 
    104103    return $html; 
Note: See TracChangeset for help on using the changeset viewer.