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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-06-05 04:40:10 +00:00
parent 9f46c4af44
commit 1390f9deee
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ function wp_upload_tab_upload_action() {
// Construct the attachment array
$attachment = array(
'post_title' => $post_title ? $post_title : $filename,
'post_title' => $post_title,
'post_content' => $post_content,
'post_type' => 'attachment',
'post_parent' => $post_id,