From 1390f9deee4c9b716864c39af6fa22b005ede1fc 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: http://svn.automattic.com/wordpress/trunk@5653 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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,