Allow Deletion of Media Alt text. Props reaperhulk. Fixes #11805

git-svn-id: http://svn.automattic.com/wordpress/trunk@13283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-02-21 11:21:32 +00:00
parent 75e88df3fe
commit 8e74ffb282
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ function media_upload_form_handler() {
$post = apply_filters('attachment_fields_to_save', $post, $attachment);
if ( isset($attachment['image_alt']) && !empty($attachment['image_alt']) ) {
if ( isset($attachment['image_alt']) ) {
$image_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
if ( $image_alt != stripslashes($attachment['image_alt']) ) {
$image_alt = wp_strip_all_tags( stripslashes($attachment['image_alt']), true );