Make WordPress Core

Ticket #18984: 18984.4.diff

File 18984.4.diff, 566 bytes (added by nacin, 12 years ago)
  • wp-admin/includes/media.php

     
    105105 * @return string the html to insert into editor
    106106 */
    107107function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
     108        if ( ! $alt )
     109                $alt = trim( strip_tags( $caption ) );
     110        if ( ! $alt )
     111                $alt = trim( strip_tags( $title ) );
    108112
    109113        $html = get_image_tag($id, $alt, '', $align, $size);
    110114