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:
parent
400c2064ad
commit
cd9f0559d9
@ -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
Block a user