Make WordPress Core

Changeset 5653


Ignore:
Timestamp:
06/05/2007 04:40:10 AM (15 years ago)
Author:
rob1n
Message:

Better use empty alt attribute than the filename. Props cpoteet. fixes #3100

File:
1 edited

Legend:

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

    r5631 r5653  
    220220        // Construct the attachment array
    221221        $attachment = array(
    222             'post_title' => $post_title ? $post_title : $filename,
     222            'post_title' => $post_title,
    223223            'post_content' => $post_content,
    224224            'post_type' => 'attachment',
Note: See TracChangeset for help on using the changeset viewer.