WordPress.org

Make WordPress Core

Changeset 7672


Ignore:
Timestamp:
04/14/08 19:47:37 (6 years ago)
Author:
ryan
Message:

Pass size to image_send_to_editor filter. fies #6691 for 2.5

Location:
branches/2.5
Files:
2 edited

Legend:

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

    r7656 r7672  
    5858        $html = "<a href='".attribute_escape($url)."'$rel>$html</a>"; 
    5959 
    60     $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url ); 
     60    $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); 
    6161 
    6262    return $html; 
  • branches/2.5/wp-includes/media.php

    r7593 r7672  
    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     $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url ); 
     101    $url = ''; 
     102    $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size ); 
    102103 
    103104    return $html; 
Note: See TracChangeset for help on using the changeset viewer.