From cd9f0559d9924845da454d96443e84b73d017cb2 Mon Sep 17 00:00:00 2001 From: rob1n Date: Tue, 5 Jun 2007 04:40:10 +0000 Subject: [PATCH] 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 --- wp-admin/includes/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/upload.php b/wp-admin/includes/upload.php index a0b98af461..141182a475 100644 --- a/wp-admin/includes/upload.php +++ b/wp-admin/includes/upload.php @@ -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,