Make WordPress Core


Ignore:
Timestamp:
11/10/2009 12:09:40 AM (17 years ago)
Author:
azaozz
Message:

Don't pre-fill empty image alt when inserting into a post.

File:
1 edited

Legend:

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

    r12137 r12161  
    101101function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
    102102
    103         $htmlalt = ( empty($alt) ) ? $title : $alt;
    104 
    105         $html = get_image_tag($id, $htmlalt, $title, $align, $size);
     103        $html = get_image_tag($id, $alt, $title, $align, $size);
    106104
    107105        $rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : '';
Note: See TracChangeset for help on using the changeset viewer.