Make WordPress Core


Ignore:
Timestamp:
11/21/2012 11:50:30 AM (12 years ago)
Author:
nacin
Message:

Stop inserting title attributes for images inserted into the editor by modifying get_image_send_to_editor(), not the generic get_image_tag().

see #18984, [22409].

File:
1 edited

Legend:

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

    r22700 r22747  
    107107function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
    108108
    109     $html = get_image_tag($id, $alt, $title, $align, $size);
     109    $html = get_image_tag($id, $alt, '', $align, $size);
    110110
    111111    $rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : '';
Note: See TracChangeset for help on using the changeset viewer.