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:
parent
9f46c4af44
commit
1390f9deee
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue