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

git-svn-id: https://develop.svn.wordpress.org/trunk@5653 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-06-05 04:40:10 +00:00
parent 400c2064ad
commit cd9f0559d9
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,