WordPress.org

Make WordPress Core

Ticket #18984: 18984.3.diff

File 18984.3.diff, 522 bytes (added by nacin, 17 months 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 = $caption; 
     110        if ( ! $alt ) 
     111                $alt = $title; 
    108112 
    109113        $html = get_image_tag($id, $alt, '', $align, $size); 
    110114