WordPress.org

Make WordPress Core

Ticket #7675: 7675.patch

File 7675.patch, 592 bytes (added by Viper007Bond, 10 years ago)
  • wp-admin/includes/media.php

     
    5353
    5454function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = false, $size='medium') {
    5555
    56         $html = get_image_tag($id, $alt, $title, $align, $size);
     56        $htmlalt = ( empty($alt) ) ? $title : $alt;
    5757
     58        $html = get_image_tag($id, $htmlalt, $title, $align, $size);
     59
    5860        $rel = $rel ? ' rel="attachment wp-att-'.attribute_escape($id).'"' : '';
    5961
    6062        if ( $url )