Changeset 22747
- Timestamp:
- 11/21/2012 11:50:30 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22700 r22747 107 107 function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') { 108 108 109 $html = get_image_tag($id, $alt, $title, $align, $size);109 $html = get_image_tag($id, $alt, '', $align, $size); 110 110 111 111 $rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : ''; -
trunk/wp-includes/media.php
r22743 r22747 226 226 $hwstring = image_hwstring($width, $height); 227 227 228 $title = $title ? 'title="' . esc_attr( $title ) . '" ' : ''; 229 228 230 $class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-image-' . $id; 229 231 $class = apply_filters('get_image_tag_class', $class, $id, $align, $size); 230 232 231 $html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" ' .$hwstring.'class="'.$class.'" />';233 $html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" ' . $title . $hwstring . 'class="' . $class . '" />'; 232 234 233 235 $html = apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );
Note: See TracChangeset
for help on using the changeset viewer.